diff --git a/SystemExtensions.NetStandard.DependencyInjection/Extensions/ServiceManagerExtensions.cs b/SystemExtensions.NetStandard.DependencyInjection/Extensions/ServiceManagerExtensions.cs
index be39709..ee24133 100644
--- a/SystemExtensions.NetStandard.DependencyInjection/Extensions/ServiceManagerExtensions.cs
+++ b/SystemExtensions.NetStandard.DependencyInjection/Extensions/ServiceManagerExtensions.cs
@@ -104,6 +104,23 @@ namespace System.Extensions
return serviceManager;
}
+ ///
+ /// Register a with a .
+ ///
+ ///
+ ///
+ public static IServiceManager RegisterCVLoggerFactory(this IServiceManager serviceManager)
+ {
+ serviceManager.RegisterScoped(sp =>
+ {
+ LoggerFactory loggerFactory = new();
+ loggerFactory.AddProvider(new CVLoggerProvider(sp.GetService()));
+ return loggerFactory;
+ });
+
+ return serviceManager;
+ }
+
public static IServiceManager RegisterLoggerFactory(this IServiceManager serviceManager, Func loggerFactory)
{
serviceManager.ThrowIfNull(nameof(serviceManager));
diff --git a/SystemExtensions.NetStandard.DependencyInjection/SystemExtensions.NetStandard.DependencyInjection.csproj b/SystemExtensions.NetStandard.DependencyInjection/SystemExtensions.NetStandard.DependencyInjection.csproj
index 2389277..bd7bd54 100644
--- a/SystemExtensions.NetStandard.DependencyInjection/SystemExtensions.NetStandard.DependencyInjection.csproj
+++ b/SystemExtensions.NetStandard.DependencyInjection/SystemExtensions.NetStandard.DependencyInjection.csproj
@@ -6,7 +6,7 @@
LICENSE
true
latest
- 1.1.4
+ 1.1.5
Alexandru Macocian
https://github.com/AlexMacocian/SystemExtensions