I have a rebus- worker that runs on azure queue, I have configured the rebusworker that will receive and send messages and it works fine. But then I want to set up a client as a oneway client like this:
_bus = Configure.With(adapter)
.Transport(
t =>
t.UseAzureStorageQueuesAsOneWayClient(AppSettingsReader.AzureStorage)
)
.Routing(r => r.TypeBased()
.MapAssemblyOf<SomeCommand>(queueAddress)
)
})
.Start();
}
Where can i set the queue name I want to send messages to? As is it returns a null-reference exception for queuename.
I'm using rebus and rebus.AzureStorage 0.99.74
The queueAddress
in your snippet should be name of the queue, to which you would like to send messages from the assembly of SomeCommand
.
To be very concrete, let's pretend you
.Routing(r => r.TypeBased()
.MapAssemblyOf<SomeCommand>("commandprocessor")
)
and then you
await bus.Send(new SomeCommand(...));
then Rebus will send that message to the queue commandprocessor
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.