From 41f52d0b876d4a44fa60856d4991c8ef50e8a1df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Ko=C5=BEelj?= Date: Wed, 4 Jan 2023 15:58:40 +0100 Subject: [PATCH] Convert OnInitialize stub to use standard IConfiguration for initialization --- src/Connected.Caching/CachingStartup.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();