Squirrowse/Squirrowse.Core/CoreModule.cs
danielgrabowski 7ee7ebc4b3 Cleanup
2019-11-07 11:52:27 +01:00

17 lines
550 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, ConnectionManager>(x =>
new ConnectionManager("http://localhost", 5000));
return services;
}
}
}