NServiceBus.HostInfoSettings.UsingCustomDisplayName C# (CSharp) Method

UsingCustomDisplayName() public method

Allows to override the display name.
public UsingCustomDisplayName ( string displayName ) : HostInfoSettings
displayName string
return HostInfoSettings
        public HostInfoSettings UsingCustomDisplayName(string displayName)
        {
            Guard.AgainstNullAndEmpty(nameof(displayName), displayName);
            config.Settings.Set("NServiceBus.HostInformation.DisplayName", displayName);
            return this;
        }