14 lines
411 B
C#
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;
|
||
|
|
}
|
||
|
|
}
|