|
123456789101112131415161718 |
- using DotNetCore.CAP.Transport;
- using Microsoft.Extensions.DependencyInjection;
-
- namespace DotNetCore.CAP.Test.FakeInMemoryQueue
- {
- internal sealed class FakeQueueOptionsExtension : ICapOptionsExtension
- {
-
- public void AddServices(IServiceCollection services)
- {
- services.AddSingleton<CapMessageQueueMakerService>();
-
- services.AddSingleton<InMemoryQueue>();
- services.AddSingleton<IConsumerClientFactory, InMemoryConsumerClientFactory>();
- services.AddSingleton<ITransport, FakeInMemoryQueueTransport>();
- }
- }
- }
|