C# 클래스 NServiceBus.HostInfoSettings

Configuration class for HostInformation settings.
파일 보기 프로젝트 열기: Particular/NServiceBus

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
HostInfoSettings ( EndpointConfiguration config ) : System

메소드 상세

UsingCustomDisplayName() 공개 메소드

Allows to override the display name.
public UsingCustomDisplayName ( string displayName ) : HostInfoSettings
displayName string
리턴 HostInfoSettings

UsingCustomIdentifier() 공개 메소드

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
리턴 HostInfoSettings

UsingInstalledFilePath() 공개 메소드

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
리턴 HostInfoSettings

UsingNames() 공개 메소드

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
리턴 HostInfoSettings