Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经通过我自己的ISubscriptionStorage类为 NServiceBus 创建了我自己的自定义订阅商店,但我找不到如何实现它,也看不到任何有关如何实现它的文档。有没有人可以帮我一把?
ISubscriptionStorage
您需要在容器中注册您的课程,并确保不要将 AsA_Publisher 与内置配置文件一起使用,也不要使用MsmqSubscriptionStorageor DbSubscriptionStorage。
MsmqSubscriptionStorage
DbSubscriptionStorage
为了在容器中注册您的课程,请执行以下操作:
NServiceBus.Configure.Instance.Configurer.ConfigureComponent<YourSubscriptionStorage>(ComponentCallModelEnum.Singleton);