C# Класс NServiceBus.HostInfoSettings

Configuration class for HostInformation settings.
Показать файл Открыть проект

Открытые методы

Метод Описание
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