Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created October 17, 2021 08:48
var busControl = Bus.Factory.CreateUsingRabbitMq();
var source = new CancellationTokenSource(TimeSpan.FromSeconds(10));
await busControl.StartAsync(source.Token);
await busControl.Publish<SubmitOrderCommand>(new
{
OrderId = Value,
ExtraData = value
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment