Search Results for

    Show / Hide Table of Contents
    View Source

    Class SingleServerRoleAccessor

    Can be used when Umbraco is definitely not operating in a Load Balanced scenario to micro-optimize some startup performance

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Sync
    Assembly: Umbraco.Core.dll
    Syntax
    public class SingleServerRoleAccessor : IServerRoleAccessor
    Remarks

    The micro optimization is specifically to avoid a DB query just after the app starts up to determine the ServerRole which by default is done with scheduling publisher election by a database query. The master election process doesn't occur until just after startup so this micro optimization doesn't really affect the primary startup phase.

    Properties

    View Source

    CurrentServerRole

    Declaration
    public ServerRole CurrentServerRole { get; }
    Property Value
    Type Description
    ServerRole
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • CurrentServerRole
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX