15 lines
375 B
C#
15 lines
375 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace Squirrowse.Core
|
|
{
|
|
public static class CoreModule
|
|
{
|
|
public static IServiceCollection AddCoreModule(this IServiceCollection services)
|
|
{
|
|
services.AddSingleton(typeof(ILogger<>), typeof(Logger<>));
|
|
|
|
return services;
|
|
}
|
|
}
|
|
} |