Interface IMachineInfoFactory
Fetches information of the host machine.
Namespace: Umbraco.Cms.Core.Factories
Assembly: Umbraco.Core.dll
Syntax
public interface IMachineInfoFactory
Methods
View SourceGetLocalIdentity()
Gets the local identity for the executing AppDomain.
Declaration
string GetLocalIdentity()
Returns
| Type | Description |
|---|---|
| string |
Remarks
It is not only about the "server" (machine name and appDomainappId), but also about an AppDomain, within a Process, on that server - because two AppDomains running at the same time on the same server (eg during a restart) are, practically, a LB setup.
Practically, all we really need is the guid, the other infos are here for information and debugging purposes.
GetMachineIdentifier()
Fetches the name of the Host Machine for identification.
Declaration
string GetMachineIdentifier()
Returns
| Type | Description |
|---|---|
| string | A name of the host machine. |