Class TopicClientDispatcherFactory
Inheritance
System.Object
TopicClientDispatcherFactory
Namespace: AzureFromTheTrenches.Commanding.AzureServiceBus
Assembly: AzureFromTheTrenches.Commanding.AzureServiceBus.dll
Syntax
public static class TopicClientDispatcherFactory : object
Methods
| Improve this Doc View SourceCreateCommandDispatcherFactory(ServiceBusConnectionStringBuilder, IServiceBusMessageSerializer)
Creates a topic 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 topic |
CreateCommandDispatcherFactory(String, String, IServiceBusMessageSerializer)
Create a command dispatcher factory using the connection string and topic name information
Declaration
public static Func<ICommandDispatcher> CreateCommandDispatcherFactory(string connectionString, string topicName, IServiceBusMessageSerializer serializer = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | Sevice bus connection string |
System.String | topicName | The name of the topic |
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 topic |