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 644 B

123456789101112131415161718192021222324252627282930
  1. # In-Memory Queue
  2. In Memory Queue 为基于内存的消息队列,该扩展由 [社区](https://github.com/yang-xiaodong/Savorboard.CAP.InMemoryMessageQueue) 进行提供。
  3. ## 配置
  4. 要使用 In Memory Queue 作为消息传输器,你需要从 NuGet 安装以下扩展包:
  5. ```shell
  6. Install-Package Savorboard.CAP.InMemoryMessageQueue
  7. ```
  8. 然后,你可以在 `Startup.cs` 的 `ConfigureServices` 方法中添加基于内存的配置项。
  9. ```csharp
  10. public void ConfigureServices(IServiceCollection services)
  11. {
  12. // ...
  13. services.AddCap(x =>
  14. {
  15. x.UseInMemoryMessageQueue();
  16. // x.UseXXX ...
  17. });
  18. }
  19. ```