/// <summary> /// /// </summary> /// <param name="queueName">Define Your QueueName, By default "_CoolBus" suffix will be added with your queue name</param> /// <param name="queueConfiguration">You can define queue configuration from here like Prefetch Count,Concurrent Thread Limit you can check following example. /// e => ///{ /// e.LoadFrom(container); /// e.PrefetchCount = 1; /// e.UseConcurrencyLimit(1); ///} /// NOTE: You must write e.LoadFrom(container); if you use queueConfiguration /// </param> /// <returns></returns> public MassTransitRabbitMqHostingService ListenOn(string queueName, Action <IRabbitMqReceiveEndpointConfigurator> queueConfiguration = null) { /* * if (queueConfiguration == null) * queueConfiguration = configurator => * { * configurator.LoadFrom(Container); * }; */ QueueConfigurations.Add(queueName + "_CoolBus", queueConfiguration); return(this); }
public MassTransitRabbitMqHostingService ListenEventsOn(string queueName, Action <IRabbitMqReceiveEndpointConfigurator> configure) { QueueConfigurations.Add(queueName, configure); return(this); }