13 lines
357 B
C#
13 lines
357 B
C#
using InServiceQue.Core.Repositories;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace InServiceQue.InMemory;
|
|
|
|
public static class InjectionExtension
|
|
{
|
|
public static IServiceCollection UseInMemory(this IServiceCollection services)
|
|
{
|
|
services.AddTransient<ITaskRepository, TaskRepositoryInMemory>();
|
|
return services;
|
|
}
|
|
} |