/// <summary>
        ///
        /// </summary>
        /// <param name="busBuilder"></param>
        /// <param name="serviceProvider"></param>
        /// <param name="serviceDescriptors">ServiceCollection should be passed in</param>
        /// <returns></returns>
        public static BusBuilder UseMicrosoftDependencyInjection(this BusBuilder busBuilder, IServiceProvider serviceProvider, IEnumerable <ServiceDescriptor> serviceDescriptors)
        {
            var dependencyInjection = new MicrosoftDependencyInjectionDependencyResolver(serviceProvider, serviceDescriptors);

            return(busBuilder
                   .UseDependencyResolver(dependencyInjection));
        }
        public static BusBuilder UseMicrosoftDependencyInjection(this BusBuilder busBuilder, IServiceProvider serviceProvider)
        {
            var dependencyInjection = new MicrosoftDependencyInjectionDependencyResolver(serviceProvider);

            return(busBuilder
                   .UseDependencyResolver(dependencyInjection));
        }
 public static BusBuilder UseAzureStorageQueue(
     this BusBuilder busBuilder, string connectionString, Action <AzureStorageQueueConfiguration> configuration)
 => busBuilder.UseMessageTransport(new AzureStorageQueueTransport(connectionString, configuration));
Beispiel #4
0
 public static BusBuilder UseAzureServiceBus(
     this BusBuilder busBuilder, string connectionString, Action <AzureServiceBusConfiguration> configuration)
 => busBuilder.UseMessageTransport(new AzureServiceBusTransport(connectionString, configuration));