Files
mixtape/zero.Core/Stores/ServiceCollectionExtensions.cs
T
2021-11-24 13:56:08 +01:00

14 lines
411 B
C#

using Microsoft.Extensions.DependencyInjection;
namespace zero.Stores;
internal static class ServiceCollectionExtensions
{
public static IServiceCollection AddZeroStores(this IServiceCollection services)
{
services.AddScoped<IStoreContext, StoreContext>();
services.AddScoped<IStoreOperations, StoreOperations>();
services.AddSingleton<IStoreCache, StoreCache>();
return services;
}
}