Пример #1
0
 public static ICommandDispatcher CreateCommandDispatcher(this EventHubClient client,
                                                          Func <ICommand, string> getPartitionKeyFunc = null)
 {
     return(new AzureEventHubDispatcher(new Implementation.EventHubClient(client), getPartitionKeyFunc));
 }
Пример #2
0
 public static Func <ICommandDispatcher> CreateCommandDispatcherFactory(this EventHubClient client,
                                                                        Func <ICommand, string> getPartitionKeyFunc = null)
 {
     return(() => CreateCommandDispatcher(client, getPartitionKeyFunc));
 }