C# Class NServiceBus.HostInfoSettings

Configuration class for HostInformation settings.
Afficher le fichier Open project: Particular/NServiceBus

Méthodes publiques

Méthode Description
UsingCustomDisplayName ( string displayName ) : HostInfoSettings

Allows to override the display name.

UsingCustomIdentifier ( System.Guid id ) : HostInfoSettings

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.

UsingInstalledFilePath ( ) : HostInfoSettings

In this mode, the host id is derived from the installed file path and the current machine name.

This mode is only recommended if upgrades are deployed always to the same path. When using Octopus Deploy do not use this mode, instead use UsingNames.

UsingNames ( string instanceName, string hostName ) : HostInfoSettings

In this mode, a host id will be generated from instanceName and hostName.

This mode is recommended when deploying in Azure roles or UsingInstalledFilePath is not appropriate.

Private Methods

Méthode Description
HostInfoSettings ( EndpointConfiguration config ) : System

Method Details

UsingCustomDisplayName() public méthode

Allows to override the display name.
public UsingCustomDisplayName ( string displayName ) : HostInfoSettings
displayName string
Résultat HostInfoSettings

UsingCustomIdentifier() public méthode

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
Résultat HostInfoSettings

UsingInstalledFilePath() public méthode

In this mode, the host id is derived from the installed file path and the current machine name.
This mode is only recommended if upgrades are deployed always to the same path. When using Octopus Deploy do not use this mode, instead use UsingNames.
public UsingInstalledFilePath ( ) : HostInfoSettings
Résultat HostInfoSettings

UsingNames() public méthode

In this mode, a host id will be generated from instanceName and hostName.
This mode is recommended when deploying in Azure roles or UsingInstalledFilePath is not appropriate.
public UsingNames ( string instanceName, string hostName ) : HostInfoSettings
instanceName string
hostName string
Résultat HostInfoSettings