NServiceBus.HostInfoSettings.UsingCustomIdentifier C# (CSharp) Method

UsingCustomIdentifier() public method

In this mode, the host id is fully managed by the user.
This mode is only recommended if you know what you are doing. The id should be the same across endpoint restarts unless physical host has changed.
public UsingCustomIdentifier ( System.Guid id ) : HostInfoSettings
id System.Guid
return HostInfoSettings
        public HostInfoSettings UsingCustomIdentifier(Guid id)
        {
            config.Settings.Set(HostInformationFeature.HostIdSettingsKey, id);
            return this;
        }