Exemplo n.º 1
0
        public static EndpointFactoryConfigurator SetPurgeOnStartup(this EndpointFactoryConfigurator configurator, bool value)
        {
            var builderConfigurator = new DelegateEndpointFactoryBuilderConfigurator(x => x.SetPurgeOnStartup(value));

            configurator.AddEndpointFactoryConfigurator(builderConfigurator);

            return(configurator);
        }
		public static EndpointFactoryConfigurator SetPurgeOnStartup(this EndpointFactoryConfigurator configurator, bool value)
		{
			var builderConfigurator = new DelegateEndpointFactoryBuilderConfigurator(x => x.SetPurgeOnStartup(value));

			configurator.AddEndpointFactoryConfigurator(builderConfigurator);

			return configurator;
		}
Exemplo n.º 3
0
        public static EndpointFactoryConfigurator SetCreateTransactionalQueues(this EndpointFactoryConfigurator configurator,
                                                                               bool value)
        {
            var builderConfigurator = new DelegateEndpointFactoryBuilderConfigurator(x => x.SetCreateTransactionalQueues(value));

            configurator.AddEndpointFactoryConfigurator(builderConfigurator);

            return(configurator);
        }
		public static EndpointFactoryConfigurator SetCreateTransactionalQueues(this EndpointFactoryConfigurator configurator,
		                                                                       bool value)
		{
			var builderConfigurator = new DelegateEndpointFactoryBuilderConfigurator(x => x.SetCreateTransactionalQueues(value));

			configurator.AddEndpointFactoryConfigurator(builderConfigurator);

			return configurator;
		}
        /// <summary>
        /// Sets the default transaction timeout for transactional transports
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="configurator"></param>
        /// <param name="timeout"></param>
        /// <returns></returns>
        public static T SetDefaultTransactionTimeout <T>(this T configurator, TimeSpan timeout)
            where T : EndpointFactoryConfigurator
        {
            var builderConfigurator = new DelegateEndpointFactoryBuilderConfigurator(x => x.SetDefaultTransactionTimeout(timeout));

            configurator.AddEndpointFactoryConfigurator(builderConfigurator);

            return(configurator);
        }
Exemplo n.º 6
0
        public static T SetDefaultIsolationLevel <T>(this T configurator, IsolationLevel level)
            where T : EndpointFactoryConfigurator
        {
            var builderConfigurator =
                new DelegateEndpointFactoryBuilderConfigurator(x => x.SetDefaultIsolationLevel(level));

            configurator.AddEndpointFactoryConfigurator(builderConfigurator);

            return(configurator);
        }