public static void TweakConfigurationBuilder(IConfigureThisEndpoint specifier, BusConfiguration config) { if (specifier is AsA_Server) { config.ScaleOut().UseSingleBrokerQueue(); } else if (specifier is AsA_Client) { config.PurgeOnStartup(true); config.Transactions().Disable(); config.DisableFeature <Features.SecondLevelRetries>(); config.DisableFeature <StorageDrivenPublishing>(); config.DisableFeature <TimeoutManager>(); } Type transportDefinitionType; if (TryGetTransportDefinitionType(specifier, out transportDefinitionType)) { config.UseTransport(transportDefinitionType); } }