Interface ISiteIdentifierService
Used to get and create the site identifier
Namespace: Umbraco.Cms.Core.Telemetry
Assembly: Umbraco.Core.dll
Syntax
public interface ISiteIdentifierService
Methods
View SourceTryCreateSiteIdentifier(out Guid)
Creates the site identifier and writes it to config.
Declaration
bool TryCreateSiteIdentifier(out Guid createdGuid)
Parameters
Type | Name | Description |
---|---|---|
Guid | createdGuid | asd. |
Returns
Type | Description |
---|---|
System.Boolean | True if success. |
TryGetOrCreateSiteIdentifier(out Guid)
Tries to get the site identifier or otherwise create it if it doesn't exist.
Declaration
bool TryGetOrCreateSiteIdentifier(out Guid siteIdentifier)
Parameters
Type | Name | Description |
---|---|---|
Guid | siteIdentifier | The out parameter for the existing or create site identifier. |
Returns
Type | Description |
---|---|
System.Boolean | True if success. |
TryGetSiteIdentifier(out Guid)
Tries to get the site identifier
Declaration
bool TryGetSiteIdentifier(out Guid siteIdentifier)
Parameters
Type | Name | Description |
---|---|---|
Guid | siteIdentifier |
Returns
Type | Description |
---|---|
System.Boolean | True if success. |