Example #1
0
        public static void TweakConfigurationBuilder(IConfigureThisEndpoint specifier, EndpointConfiguration config)
        {
            // ReSharper disable once SuspiciousTypeConversion.Global
            if (specifier is AsA_Client)
            {
                config.PurgeOnStartup(true);
                config.GetSettings().Set <TransportTransactionMode>(TransportTransactionMode.None);

                config.Recoverability().Delayed(delayed => delayed.NumberOfRetries(0));
                config.DisableFeature <TimeoutManager>();
            }

            Type transportDefinitionType;

            if (TryGetTransportDefinitionType(specifier, out transportDefinitionType))
            {
                config.UseTransport(transportDefinitionType);
            }
        }