NServicebus ISubscriptionStorage

发布于 2024-08-23 15:21:59 字数 104 浏览 3 评论 0原文

我已经通过自己的 ISubscriptionStorage 类为 NServiceBus 创建了自己的自定义订阅存储,但我找不到如何实现它,也看不到任何有关如何执行此操作的文档。有人可以帮我吗?

I have created my own custom subscription store for NServiceBus via my own ISubscriptionStorage class but I cannot find how to implement it and cannot see any documentation on how to do so. Is there anyone out there who can give me a hand?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

哭了丶谁疼 2024-08-30 15:21:59

您需要在容器中注册您的类,并确保不要将 AsA_Publisher 与内置配置文件一起使用,也不要使用 MsmqSubscriptionStorageDbSubscriptionStorage

为了在容器中注册您的类,请执行以下操作:


NServiceBus.Configure.Instance.Configurer.ConfigureComponent(ComponentCallModelEnum.Singleton);

You need to register your class in the container, and make sure NOT to use AsA_Publisher with the built-in profiles, also don't use MsmqSubscriptionStorage or DbSubscriptionStorage.

In order to register your class in the container do:


NServiceBus.Configure.Instance.Configurer.ConfigureComponent<YourSubscriptionStorage>(ComponentCallModelEnum.Singleton);

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文