diff --git a/source/VMelnalksnis.NordigenDotNet.DependencyInjection/ServiceCollectionExtensions.cs b/source/VMelnalksnis.NordigenDotNet.DependencyInjection/ServiceCollectionExtensions.cs index 84f5d91..ea47c35 100644 --- a/source/VMelnalksnis.NordigenDotNet.DependencyInjection/ServiceCollectionExtensions.cs +++ b/source/VMelnalksnis.NordigenDotNet.DependencyInjection/ServiceCollectionExtensions.cs @@ -60,10 +60,10 @@ public static class ServiceCollectionExtensions .AddTransient() .AddTransient() .AddTransient() - .AddTransient(provider => provider.GetRequiredService>().Value) + .AddTransient(provider => provider.GetRequiredService>().CurrentValue) .AddHttpClient((provider, client) => { - client.BaseAddress = provider.GetRequiredService>().Value.BaseAddress; + client.BaseAddress = provider.GetRequiredService>().CurrentValue.BaseAddress; var assembly = typeof(INordigenClient).Assembly.GetName();