diff --git a/src/CSharp/EasyMicroservices.Logger.DependencyInjection/LoggerExtensions.cs b/src/CSharp/EasyMicroservices.Logger.DependencyInjection/LoggerExtensions.cs index 002ef95..b07caaa 100644 --- a/src/CSharp/EasyMicroservices.Logger.DependencyInjection/LoggerExtensions.cs +++ b/src/CSharp/EasyMicroservices.Logger.DependencyInjection/LoggerExtensions.cs @@ -1,4 +1,5 @@ -using EasyMicroservices.Logger.Options; +using EasyMicroservices.Logger.Interfaces; +using EasyMicroservices.Logger.Options; using System; namespace Microsoft.Extensions.DependencyInjection @@ -29,7 +30,7 @@ public static IServiceCollection AddLoggerScoped(this IServiceCollection service { options.ThrowIfNull(nameof(options)); options(new LoggerOption()); - services.AddScoped(service => LoggerOptionBuilder.GetLogger()); + services.AddScoped(service => LoggerOptionBuilder.GetLogger()); return services; } @@ -43,7 +44,7 @@ public static IServiceCollection AddLoggerTransient(this IServiceCollection serv { options.ThrowIfNull(nameof(options)); options(new LoggerOption()); - services.AddTransient(service => LoggerOptionBuilder.GetLogger()); + services.AddTransient(service => LoggerOptionBuilder.GetLogger()); return services; } @@ -57,7 +58,7 @@ public static IServiceCollection AddLoggerSingleton(this IServiceCollection serv { options.ThrowIfNull(nameof(options)); options(new LoggerOption()); - services.AddSingleton(service => LoggerOptionBuilder.GetLogger()); + services.AddSingleton(service => LoggerOptionBuilder.GetLogger()); return services; } }