System Library Common Episerver
Search Results for

    DocFx,SystemLibrary.Common.Episerver.Properties.MessageConfig,SystemLibrary.Common.Episerver.Properties.MessageEditorDescriptor,SystemLibrary.Common.Episerver.Properties.MessageProperty,SystemLibrary.Common.Episerver.Properties.MessageController,SystemLibrary.Common.Episerver.Attributes.BoxSelectionController,SystemLibrary.Common.Episerver.Attributes.BoxSelectionFactory,SystemLibrary.Common.Episerver.Attributes.JsonEditController,SystemLibrary.Common.Episerver.Attributes.JsonEditFactory,SystemLibrary.Common.Episerver.Descriptors.HideCategoryListDescriptor,SystemLibrary.Common.Episerver.Properties.ParentLinkReferenceController,SystemLibrary.Common.Episerver.Properties.ParentLinkReferenceEditorDescriptor,SystemLibrary.Common.Episerver.Properties.ParentLinkReferenceProperty,SystemLibrary.Common.Episerver.Attributes.MultiDropdownSelectionController,SystemLibrary.Common.Episerver.Attributes.MultiDropdownSelectionFactory,SystemLibrary.Common.Episerver.Initialize.RemoveSuggestedContentTypes,SystemLibrary.Common.Episerver.Extensions.CommonEpiserverApplicationServicesOptions,SystemLibrary.Common.Episerver.Extensions.CommonEpiserverApplicationBuilderOptions,SystemLibrary.Common.Episerver.EditController,SystemLibrary.Common.Episerver.Abstract.BaseController,SystemLibrary.Common.Episerver.Abstract.BaseMultiSelectionFactory,SystemLibrary.Common.Episerver.ConnectionStringsConfig,SystemLibrary.Common.Episerver.PropertiesConfig,SystemLibrary.Common.Episerver.EditConfig,SystemLibrary.Common.Episerver.Properties.MessageConfig,SystemLibrary.Common.Episerver.FontAwesome,SystemLibrary.Common.Episerver.AppSettings.Configuration,SystemLibrary.Common.Episerver.Attributes.ParentLinkReferenceFactory,SystemLibrary.Common.Episerver.Abstract.InternalBaseController,WebApplicationInitializer
    Show / Hide Table of Contents
    NamespaceSystemLibrary.Common.Episerver.Extensions SystemLibrary.Common.Episerver.dll

    CmsServicesCollectionOptions

    public class CmsServicesCollectionOptions : ServicesCollectionOptions

    Inheritance
    System.Object
    SystemLibrary.Common.Web.Extensions.BaseOptions
    SystemLibrary.Common.Web.Extensions.ServicesCollectionOptions
    CmsServicesCollectionOptions
    Inherited Members
    SystemLibrary.Common.Web.Extensions.ServicesCollectionOptions.UseMvc
    SystemLibrary.Common.Web.Extensions.ServicesCollectionOptions.AddApplicationAsPart
    SystemLibrary.Common.Web.Extensions.ServicesCollectionOptions.ApplicationParts
    SystemLibrary.Common.Web.Extensions.ServicesCollectionOptions.AddRazorRuntimeCompilationOnChange
    SystemLibrary.Common.Web.Extensions.ServicesCollectionOptions.ViewLocationExpander
    SystemLibrary.Common.Web.Extensions.ServicesCollectionOptions.ViewLocations
    SystemLibrary.Common.Web.Extensions.ServicesCollectionOptions.AreaViewLocations
    SystemLibrary.Common.Web.Extensions.ServicesCollectionOptions.AdditionalSupportedMediaTypes
    SystemLibrary.Common.Web.Extensions.ServicesCollectionOptions.UseAutomaticDataProtectionPolicy
    SystemLibrary.Common.Web.Extensions.ServicesCollectionOptions.AddForwardStandardLogging
    SystemLibrary.Common.Web.Extensions.ServicesCollectionOptions.UseResponseCaching
    SystemLibrary.Common.Web.Extensions.ServicesCollectionOptions.IISAllowSynchronousIO
    SystemLibrary.Common.Web.Extensions.ServicesCollectionOptions.UseCustomTypeConverters
    SystemLibrary.Common.Web.Extensions.BaseOptions.UseRazorPages
    SystemLibrary.Common.Web.Extensions.BaseOptions.UseControllers
    SystemLibrary.Common.Web.Extensions.BaseOptions.UseApiControllers
    SystemLibrary.Common.Web.Extensions.BaseOptions.UseCookiePolicy
    SystemLibrary.Common.Web.Extensions.BaseOptions.UseForwardedHeaders
    SystemLibrary.Common.Web.Extensions.BaseOptions.UseHttpsRedirection
    SystemLibrary.Common.Web.Extensions.BaseOptions.UseOutputCache
    SystemLibrary.Common.Web.Extensions.BaseOptions.UseOutputCacheAfterAuthentication
    SystemLibrary.Common.Web.Extensions.BaseOptions.UseGzipResponseCompression
    SystemLibrary.Common.Web.Extensions.BaseOptions.UseBrotliResponseCompression
    Examples
    Arguments
    X

    Fields

    Register the 'ApplicationCookie' to be the login cookie in the CMS

    - Registered a service for cookie scheme "Cookies" to be used as a seperate login if wanted

    - UsersSlidingExpiration handles the sliding expiration duration

    - UsersSignedInDuration handles cookie duration, default 180 min

    - Sets sameSite as 'strict'

    View Source

    public bool AddApplicationCookies

    X
    Field Value
    Type Description
    System.Boolean

    Add mobile, tablet and desktop resolutions for the CMS in Edit

    View Source

    public bool AddDisplays

    X
    Field Value
    Type Description
    System.Boolean

    Adds all react services and the V8 engine for react server side rendering

    - Set to false if you do not use react server side

    View Source

    public bool AddReactServerSideServices

    X
    Field Value
    Type Description
    System.Boolean

    Note: requires ConfigureApplicationCookie to be set to True

    - Sets the 'Identity.Application' scheme's signed in duration in minutes which is the default Cookie for CMS users

    Default duration is 104 hours, usually from monday 08:00 till friday 16:00

    View Source

    public int ApplicationCookieDuration

    X
    Field Value
    Type Description
    System.Int32

    Auto publish on uploaded media, defaults to True

    View Source

    public bool AutoPublishMediaOnUpload

    X
    Field Value
    Type Description
    System.Boolean

    Minimum CMS users password length

    Required the AddApplicationCookie to be true

    View Source

    public int CmsUsersMinimumPasswordLength

    X
    Field Value
    Type Description
    System.Int32

    Note: requires ConfigureApplicationCookie to be set to True

    - Sets the 'Cookiess' signed in duration in minutes which is the default Cookies that you can use for non CMS users

    Default duration is 58 minutes

    View Source

    public int CookieDuration

    X
    Field Value
    Type Description
    System.Int32

    The default email of the default admin user

    - Only used if the DB is empty

    Note: assuming the default value, 'demo' is used as username, the text before @
    View Source

    public string DefaultAdminEmail

    X
    Field Value
    Type Description
    System.String

    The default password of the default admin user

    - Only used if the DB is empty

    View Source

    public string DefaultAdminPassword

    X
    Field Value
    Type Description
    System.String

    Hide the Category Property that all content comes with from Optimizely CMS

    View Source

    public bool HidePropertyCategoryList

    X
    Field Value
    Type Description
    System.Boolean

    Hide the suggested content types at the top of the "New creation dialog"

    View Source

    public bool HideSuggestedContentTypes

    X
    Field Value
    Type Description
    System.Boolean

    A comma separated list of languageId's that comes with Episerver

    Set to null or blank, if you do not want to do anything with languages, so the default that you were used to (15 default languages added, while sv and en is enabled, will then be the result)

    Example of language id's:

    sv, en, da, fr, de, fi, no, nn, nl-BE, nl, en-AU, it-IT
    View Source

    public string InitialLanguagesEnabled

    X
    Field Value
    Type Description
    System.String

    Toggle on/off the DB initialization of a new admin user, updating property order, language enabled and site definitions

    Defaults to: false

    Set to true if you always want 0 users in the DB your application might use an identity from Azure AD or similar
    View Source

    public bool SkipInitialization

    X
    Field Value
    Type Description
    System.Boolean

    Maximum upload size in bytes, defaults to 30MB

    View Source

    public long UploadLimitBytes

    X
    Field Value
    Type Description
    System.Int64

    Note: requires ConfigureApplicationCookie to be set to True

    - Sets both Cookies and Identity.Application scheme's sliding expiration flag

    View Source

    public bool UsersSlidingExpiration

    X
    Field Value
    Type Description
    System.Boolean

    Websockets enabled by default

    View Source

    public bool WebSocketEnabled

    X
    Field Value
    Type Description
    System.Boolean

    Extension Methods

    TExtensions.ReactServerSideRender<T>(T, Object, String, Boolean, String, String, String, Boolean, Boolean, Boolean)

    }

    • View Source
    In This Article
    Package: nuget
    Source: github
    Website: System Library Common Episerver