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.

in-memory-queue.md 655 B

12345678910111213141516171819202122232425262728
  1. # In-Memory Queue
  2. In Memory Queue is a memory-based message queue provided by [Community](https://github.com/yang-xiaodong/Savorboard.CAP.InMemoryMessageQueue).
  3. ## Configuration
  4. To use In Memory Queue as a message transporter, you need to install the following extensions from NuGet:
  5. ```powershell
  6. PM> Install-Package Savorboard.CAP.InMemoryMessageQueue
  7. ```
  8. Then you can add memory-based configuration items to the `ConfigureServices` method of `Startup.cs`.
  9. ```csharp
  10. public void ConfigureServices(IServiceCollection services)
  11. {
  12. // ...
  13. services.AddCap(x =>
  14. {
  15. x.UseInMemoryMessageQueue();
  16. // x.UseXXX ...
  17. });
  18. }
  19. ```