mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-07-01 02:01:45 +02:00
17 lines
591 B
C#
17 lines
591 B
C#
namespace Giants.Services
|
|
{
|
|
using Giants.Services.Core;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
public static class ServicesModule
|
|
{
|
|
public static void RegisterServices(IServiceCollection services, IConfiguration configuration)
|
|
{
|
|
services.AddSingleton<IServerRegistryService, ServerRegistryService>();
|
|
services.AddSingleton<IServerRegistryStore, CosmosDbServerRegistryStore>();
|
|
services.AddSingleton<IDateTimeProvider, DefaultDateTimeProvider>();
|
|
}
|
|
}
|
|
}
|