使用NserviceBus Azure触发功能(NServiceBustriggerFunction)使用Learning Transport
尝试使用示例代码段:
builder.UseNServiceBus(ctx =>
{
var endpointConfig = new EndpointConfiguration("ConsoleEndpoint");
endpointConfig.UseTransport(new LearningTransport());
return endpointConfig;
});
它不起作用,也尝试了类似的东西,但无济于事。
当我在函数“模拟器”中本地运行Azure函数时,对于我的消息(LearningTransport),将本地文件系统使用对我来说是可以的,但是config.usetransport不接受Learning Transport的实例。
将LearningTransport与Azure函数触发使用的正确方法是什么?
Trying to use the example code snippet:
builder.UseNServiceBus(ctx =>
{
var endpointConfig = new EndpointConfiguration("ConsoleEndpoint");
endpointConfig.UseTransport(new LearningTransport());
return endpointConfig;
});
It's not working, also tried similar stuff to no avail.
When I run the azure function locally in the functions "emulator", it would be fine for me to use the local file system for the messages (LearningTransport), however the config.UseTransport doesn't accept an Instance of LearningTransport.
What would be the correct way to use the LearningTransport with the azure functions trigger?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
nServiceBus对功能的支持仅与存储队列。如果您想在本地运行,后者应该与Azurite一起工作。
值得注意的是,NserviceBus对功能的支持是基于触发器功能提供的,而不是Nservicebus的传输。因此,由于它不是有效的函数触发,因此不支持Learning Transport。
NServiceBus support for functions only works with Service Bus and Storage Queues. If you want to run locally, the latter should be working with Azurite.
Worth noting that NServiceBus support for functions is based on the triggers functions provide, not the transports NServiceBus has. Therefore LearningTransport would not be supported as it’s not a valid function trigger.