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();
            }
        }
		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();
		}