Class QueueClientDispatcherFactory
Inheritance
System.Object
QueueClientDispatcherFactory
Namespace: AzureFromTheTrenches.Commanding.AzureServiceBus
Assembly: AzureFromTheTrenches.Commanding.AzureServiceBus.dll
Syntax
public static class QueueClientDispatcherFactory : object
Methods
| Improve this Doc View SourceCreateCommandDispatcherFactory(ServiceBusConnectionStringBuilder, IServiceBusMessageSerializer)
Creates a queue command dispatcher factory using the connection string
Declaration
public static Func<ICommandDispatcher> CreateCommandDispatcherFactory(ServiceBusConnectionStringBuilder builder, IServiceBusMessageSerializer serializer = null)
Parameters
Type | Name | Description |
---|---|---|
ServiceBusConnectionStringBuilder | builder | Connection string builder |
IServiceBusMessageSerializer | serializer | An optional serializer to use, if unspecified the default JSON serializer will be used |
Returns
Type | Description |
---|---|
Func<ICommandDispatcher> | A command dispatcher factory that will send commands to the queue |
CreateCommandDispatcherFactory(String, String, IServiceBusMessageSerializer)
Create a command dispatcher factory using the connection string and queue name information
Declaration
public static Func<ICommandDispatcher> CreateCommandDispatcherFactory(string connectionString, string queueName, IServiceBusMessageSerializer serializer = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | Sevice bus connection string |
System.String | queueName | The name of the queue |
IServiceBusMessageSerializer | serializer | An optional serializer to use, if unspecified the default JSON serializer will be used |
Returns
Type | Description |
---|---|
Func<ICommandDispatcher> | A command dispatcher factory that will send commands to the queue |