Show / Hide Table of Contents

Class AzureEventHubDispatcherFactory

Shortcuts for creating Event Hub dispatcher factories

Inheritance
System.Object
AzureEventHubDispatcherFactory
Namespace: AzureFromTheTrenches.Commanding.AzureEventHub
Assembly: AzureFromTheTrenches.Commanding.AzureEventHub.dll
Syntax
public static class AzureEventHubDispatcherFactory : object

Methods

| Improve this Doc View Source

CreateCommandDispatcherFactory(String, IEventHubSerializer, Func<ICommand, String>)

Creates an event hub dispatcher factory

Declaration
public static Func<ICommandDispatcher> CreateCommandDispatcherFactory(string connectionString, IEventHubSerializer serializer = null, Func<ICommand, string> getPartitionKeyFunc = null)
Parameters
Type Name Description
System.String connectionString

The connection string

IEventHubSerializer serializer

The serializer to use, defaults to the built in JSON serializer

Func<ICommand, System.String> getPartitionKeyFunc

A function that can be used to establish the partition key given a command

Returns
Type Description
Func<ICommandDispatcher>
| Improve this Doc View Source

CreateCommandDispatcherFactory(String, String, IEventHubSerializer, Func<ICommand, String>)

Creates an event hub dispatcher factory

Declaration
public static Func<ICommandDispatcher> CreateCommandDispatcherFactory(string connectionString, string eventHubName, IEventHubSerializer serializer = null, Func<ICommand, string> getPartitionKeyFunc = null)
Parameters
Type Name Description
System.String connectionString

The connection string

System.String eventHubName

The event hub name

IEventHubSerializer serializer

The serializer to use, defaults to the built in JSON serializer

Func<ICommand, System.String> getPartitionKeyFunc

A function that can be used to establish the partition key given a command

Returns
Type Description
Func<ICommandDispatcher>
  • Improve this Doc
  • View Source
  • 0 Comments
Back to top Copyright © 2018 James Randall