Squirrowse/Squirrowse.Core/CoreModule.cs
2019-11-06 17:02:06 +01:00

17 lines
531 B
C#

using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Squirrowse.Core.Services;
namespace Squirrowse.Core
{
public static class CoreModule
{
public static IServiceCollection AddCoreModule(this IServiceCollection services)
{
services.AddSingleton(typeof(ILogger<>), typeof(Logger<>));
services.AddSingleton<IConnectionManager>(x =>
new ConnectionManager("http://localhost", 5000));
return services;
}
}
}