private void ConfigureLogging() { var loggingSection = RootConfigurationSection.GetSection("Logging"); if (loggingSection?.GetChildren().Any() ?? false) { var methodCalls = GetMethodCalls(loggingSection).ToList(); var loggingConfigurationMethods = FindLoggingConfigurationMethods(); InvokeConfigurationMethods <RebusLoggingConfigurer>( methodCalls, loggingConfigurationMethods, MainConfigurer.Logging); } }
private void ConfigureTransport() { var transportConfigurationSection = RootConfigurationSection.GetSection("Transport"); if (transportConfigurationSection?.GetChildren().Any() ?? false) { var methodCalls = GetMethodCalls(transportConfigurationSection).ToList(); var transportConfigurationMethods = FindTransportConfigurationMethods(); InvokeConfigurationMethods <StandardConfigurer <ITransport> >( methodCalls, transportConfigurationMethods, MainConfigurer.Transport); } }