diff --git a/src/Connected.Caching/CachingStartup.cs b/src/Connected.Caching/CachingStartup.cs index fb999f4..d606c46 100644 --- a/src/Connected.Caching/CachingStartup.cs +++ b/src/Connected.Caching/CachingStartup.cs @@ -1,6 +1,7 @@ using Connected.Annotations; using Connected.Caching.Net; using Microsoft.AspNetCore.Builder; +using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; [assembly: MicroService(MicroServiceType.Sys)] @@ -24,7 +25,7 @@ internal class CachingStartup : Startup services.AddScoped(typeof(ICacheContext), typeof(CacheContext)); } - protected override async Task OnInitialize(Dictionary args) + protected override async Task OnInitialize(IConfiguration config) { if (Services is not null && Services.GetService() is ICachingService service) await service.Initialize();