You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
592 B

  1. using DotNetCore.CAP.Transport;
  2. using Microsoft.Extensions.DependencyInjection;
  3. namespace DotNetCore.CAP.Test.FakeInMemoryQueue
  4. {
  5. internal sealed class FakeQueueOptionsExtension : ICapOptionsExtension
  6. {
  7. public void AddServices(IServiceCollection services)
  8. {
  9. services.AddSingleton<CapMessageQueueMakerService>();
  10. services.AddSingleton<InMemoryQueue>();
  11. services.AddSingleton<IConsumerClientFactory, InMemoryConsumerClientFactory>();
  12. services.AddSingleton<ITransport, FakeInMemoryQueueTransport>();
  13. }
  14. }
  15. }