Interface IServerRegistrar
Provides server registrations to the distributed cache.
Namespace: Umbraco.Core.Sync
Assembly: Umbraco.Core.dll
Syntax
public interface IServerRegistrar
Properties
View SourceRegistrations
Gets the server registrations.
Declaration
IEnumerable<IServerAddress> Registrations { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IServerAddress> |
Methods
View SourceGetCurrentServerRole()
Gets the role of the current server in the application environment.
Declaration
ServerRole GetCurrentServerRole()
Returns
Type | Description |
---|---|
ServerRole |
GetCurrentServerUmbracoApplicationUrl()
Gets the current umbraco application URL.
Declaration
string GetCurrentServerUmbracoApplicationUrl()
Returns
Type | Description |
---|---|
System.String |
Remarks
If the registrar does not provide the umbraco application URL, should return null.
Must return null, or a URL that ends with SystemDirectories.Umbraco, and contains a scheme, eg "http://www.mysite.com/umbraco".