refactor(Core.Abstractions): update to support net 4.6.2
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
#if NET
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
namespace DigitalData.Core.Abstractions;
|
||||
@@ -29,3 +30,4 @@ public static class ServiceProviderExtensions
|
||||
public static TOptions GetRequiredOptions<TOptions>(this IServiceProvider service) where TOptions : class
|
||||
=> service.GetRequiredService<IOptions<TOptions>>().Value;
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user