Added in version: 2.3.0.0
Send message to service bus. This method doesn't wait for the reply. If method is unable to send message all errors are always thrown as an exception.
Parameters:
Type | Name | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
string | data | Data that will be send to the service bus | |||||||||||||||||||||
ServiceBusSettings | settings
| Class contains data sending settings | |||||||||||||||||||||
CancellationToken | token | Cancellation |
Output:
bool: always true
Example:
var settings = new ServiceBusSettings {
TimeoutMs = 10,
ConnectionString = "Endpoint=sb://FRENDS/FRENDS-NS;StsEndpoint=https://FRENDS:1234/FRENDS-NS;RuntimePort=2345;ManagementPort=1234;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=abc",
QueueName = "queue",
MessageId = "",
SessionId = "",
UseCached = true
}
SendOneWay("Body", settings, new CancellationToken())