Files
mixtape/zero.Core/Stores/ServiceCollectionExtensions.cs
T

14 lines
411 B
C#
Raw Normal View History

2021-11-23 22:56:22 +01:00
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;
}
}