Ejemplo n.º 1
0
        public void ApplyTo(IServiceBusConfigurator configurator)
        {
            if (ObjectBuilder != null)
            {
                configurator.SetObjectBuilder(ObjectBuilder);
            }

            if (ErrorUri != null)
            {
                configurator.SendErrorsTo(ErrorUri);
            }

            configurator.SetReceiveTimeout(ReceiveTimeout);
            configurator.SetConcurrentConsumerLimit(ConcurrentConsumerLimit);
            configurator.SetConcurrentReceiverLimit(ConcurrentReceiverLimit);

            if (!AutoStart)
            {
                configurator.DisableAutoStart();
            }
            if (AutoSubscribe)
            {
                configurator.EnableAutoSubscribe();
            }
        }
Ejemplo n.º 2
0
        protected override void ConfigureLocalBus(IServiceBusConfigurator configurator)
        {
            base.ConfigureLocalBus(configurator);

            configurator.SetConcurrentConsumerLimit(100);

            configurator.Subscribe(s =>
                                   s.Handler <A>(msg =>
            {
                _before.Release();
                _wait.WaitOne(30.Seconds());
                _after.Release();
            }));
        }
		public void ApplyTo(IServiceBusConfigurator configurator)
		{
			if (ObjectBuilder != null)
				configurator.SetObjectBuilder(ObjectBuilder);

			if (ErrorUri != null)
				configurator.SendErrorsTo(ErrorUri);

			configurator.SetReceiveTimeout(ReceiveTimeout);
			configurator.SetConcurrentConsumerLimit(ConcurrentConsumerLimit);
			configurator.SetConcurrentReceiverLimit(ConcurrentReceiverLimit);

			if (!AutoStart)
				configurator.DisableAutoStart();
			if (AutoSubscribe)
				configurator.EnableAutoSubscribe();
		}
Ejemplo n.º 4
0
 public void Configure(IServiceBusConfigurator configurator)
 {
     configurator.SetConcurrentConsumerLimit(1);
 }