rabbitmq - MassTransit 7.3.1 Publish method exception: "System.ObjectDisposedException: The CancellationTokenSource has

I am using mass transit 7.3.1 with mass transit simple injector for sending msgs to rabbit mq and upon

I am using mass transit 7.3.1 with mass transit simple injector for sending msgs to rabbit mq and upon using the method IPublishEndpoint.Publish (Task Publish<T>(object values, CancellationToken cancellationToken = default(CancellationToken)) where T : class; it throws the exception

Exception: "System.ObjectDisposedException: The CancellationTokenSource has been disposed.\n at MassTransit.Conte │ │ xt.BaseReceiveContext.get_CancellationToken()\n at MassTransit.Context.MessageConsumeContext1.GreenPipes.PipeContext.get_CancellationToken()\n at MassTransit.Context.ConsumeContextScope.get_Cancellati │ │ onToken()\n at MassTransit.Context.ConsumeContextScope.get_CancellationToken()\n at GreenPipes.ProxyPipeContext.get_CancellationToken()\n at GreenPipes.ProxyPipeContext.get_CancellationToken()\n at │ │ GreenPipes.ProxyPipeContext.get_CancellationToken()\n at MassTransit.Initializers.MessageInitializer2.Send(ISendEndpoint endpoint, InitializeContext`1 context, Object input)

I have tried passing the cancellation token within a using statement and also have tried passing CancellationToken.None. But neither has helped. Any ideas?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744720594a4589885.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信