public static IConfigureDependencies AddCoreDependencies(this IConfigureDependencies configuration
                                                          //, BusConfigurationBuilder busConfigurationBuilder
                                                          )
 {
     configuration.Add <IBus, Bus>();
     configuration.Add <IMonitor, Monitor>();
     configuration.Add <HandlerFactory>();
     configuration.Add <IBusConfiguration, BusConfiguration>();
     configuration.Add <BusConfigurationBuilder>();
     return(configuration);
 }
Ejemplo n.º 2
0
 public static IConfigureDependencies AddAzureServiceBusTransportProvider(this IConfigureDependencies configuration, AzureServiceBusConfiguration azureServiceBusConfiguration)
 {
     configuration.Add(azureServiceBusConfiguration);
     configuration.Add <IQueueFactory, QueueFactory>();
     configuration.Add <ITopicFactory, TopicFactory>();
     configuration.Add <ISubscriptionFactory, SubscriptionFactory>();
     configuration.Add <IConsumerFactory, ConsumerFactory>();
     configuration.Add <MessageSerializer>();
     configuration.Add <BrokeredMessageFactory>();
     return(configuration);
 }