NServiceBus.InstallConfigExtensions.EnableInstallers C# (CSharp) Method

EnableInstallers() public static method

Enable all INeedToInstallSomething to run when the configuration is complete.
public static EnableInstallers ( this config, string username = null ) : void
config this The instance to apply the settings to.
username string The username to pass to .
return void
        public static void EnableInstallers(this EndpointConfiguration config, string username = null)
        {
            Guard.AgainstNull(nameof(config), config);
            if (username != null)
            {
                config.Settings.Set("Installers.UserName", username);
            }

            config.Settings.Set("Installers.Enable", true);
        }
    }
InstallConfigExtensions