Search Results for

    Show / Hide Table of Contents

    Class ApplicationSettings

    Keeps track of the application settings

    Inheritance
    System.Object
    ApplicationSettings
    Namespace: ImageVault.Core.Configuration
    Assembly: ImageVault.Core.dll
    Syntax
    public class ApplicationSettings : ApplicationSettingsBase

    Constructors

    ApplicationSettings()

    Declaration
    public ApplicationSettings()

    Fields

    DatabaseDetailedLoggingKey

    Name for configuration value

    Declaration
    public const string DatabaseDetailedLoggingKey = "iv:databaseDetailedLogging"
    Field Value
    Type Description
    System.String

    DefaultOAuthRefreshTokenExpirationHours

    Default expiration is one week.

    Declaration
    public const int DefaultOAuthRefreshTokenExpirationHours = 168
    Field Value
    Type Description
    System.Int32

    Properties

    AutoRestartOnStartupFailureTimeout

    Timeout before a restart is done if initialization of the application fails

    Declaration
    public TimeSpan AutoRestartOnStartupFailureTimeout { get; set; }
    Property Value
    Type Description
    System.TimeSpan

    AzureLocalCacheFolder

    Folder used for Azure local cache

    Declaration
    public string AzureLocalCacheFolder { get; set; }
    Property Value
    Type Description
    System.String

    AzureLocalCacheSizeLimit

    Get/sets the maximum size limit of the Azure Local cache folder in bytes.

    Declaration
    public long AzureLocalCacheSizeLimit { get; set; }
    Property Value
    Type Description
    System.Int64

    CachePrefix

    Defines the prefix to use when declaring cache keys (if multiple instances should share the same cache)

    Declaration
    public string CachePrefix { get; set; }
    Property Value
    Type Description
    System.String

    CalculateContentHashOnUploadContentSizeLimit

    Get/sets the size limit when content hash should be calculated on upload

    Declaration
    public long CalculateContentHashOnUploadContentSizeLimit { get; set; }
    Property Value
    Type Description
    System.Int64
    Remarks

    Content hash is used to find duplicates and is either calculated on upload or after. Since it can take some time (50Mb/s) to calculate the hash, we limit the size of the content that are processed during upload.

    CleanUpJobThrottle

    Number of milliseconds to wait between deleting posts in database. If db load is high during cleanup job, increase this value

    Declaration
    public int CleanUpJobThrottle { get; set; }
    Property Value
    Type Description
    System.Int32

    DatabaseCommandTimeout

    The number of seconds before a command to the database should timeout

    Declaration
    public int DatabaseCommandTimeout { get; set; }
    Property Value
    Type Description
    System.Int32

    DatabaseDetailedLogging

    If true, detailed database logging should be activated

    Declaration
    public bool DatabaseDetailedLogging { get; set; }
    Property Value
    Type Description
    System.Boolean

    DisableJobEngine

    Checks if the job engine should be disabled

    Declaration
    public bool DisableJobEngine { get; set; }
    Property Value
    Type Description
    System.Boolean

    EditVideoTextSettingsJson

    Json string used to configure the Edit video text editor.

    Declaration
    public string EditVideoTextSettingsJson { get; set; }
    Property Value
    Type Description
    System.String
    Examples
    {commonLanguages:['en','sv','no','da','fi','ge']}

    EnableXmpAnalysis

    Activates XMP metadata analysis (experimental)

    Declaration
    public bool EnableXmpAnalysis { get; set; }
    Property Value
    Type Description
    System.Boolean

    FfProbePath

    Declaration
    public string FfProbePath { get; set; }
    Property Value
    Type Description
    System.String

    HostManagementServer

    Url to host management server. Only set for Meriworks SaaS customers

    Declaration
    public string HostManagementServer { get; set; }
    Property Value
    Type Description
    System.String

    Instance

    Gets the singleton instance of the ApplicationSettings

    Declaration
    public static ApplicationSettings Instance { get; }
    Property Value
    Type Description
    ApplicationSettings

    IsReadOnly

    Defines if the ImageVault application is in ReadOnly mode or not

    Declaration
    public bool IsReadOnly { get; set; }
    Property Value
    Type Description
    System.Boolean

    MediaExpire

    The time a media item should be valid before expiring

    Declaration
    public TimeSpan MediaExpire { get; set; }
    Property Value
    Type Description
    System.TimeSpan

    Default value is 525600 which is 365 days ~ 1 year. If set to 0, media expires immediately.

    Remarks

    Will be uses as value for the max-age cache directive (but as seconds) https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9

    OAuthRefreshTokenExpirationHours

    Gets the number of hours a refresh-token should be valid until expiration

    Declaration
    public int OAuthRefreshTokenExpirationHours { get; set; }
    Property Value
    Type Description
    System.Int32

    SearchIndexBatchSize

    Configurable value for number of MediaItems to batch save while updating search index

    Declaration
    public int SearchIndexBatchSize { get; set; }
    Property Value
    Type Description
    System.Int32

    SearchPageSize

    Get/sets the number of items to load on each search page

    Declaration
    public int SearchPageSize { get; set; }
    Property Value
    Type Description
    System.Int32

    SecurityManagerFactoryConfiguration

    Returns the configured SecurityManagerFactoryConfiguration from web.config

    Declaration
    public string SecurityManagerFactoryConfiguration { get; set; }
    Property Value
    Type Description
    System.String

    The configured configuration or null if no configuration was found

    SetupEnabledForNonAdmins

    If enabled, setup is allowed for non admins

    Declaration
    public bool SetupEnabledForNonAdmins { get; set; }
    Property Value
    Type Description
    System.Boolean

    SystemFormatMaxCount

    Configurable value for IApplicationInstanceCache.SystemFormatMaxCount

    Declaration
    public int SystemFormatMaxCount { get; set; }
    Property Value
    Type Description
    System.Int32

    ThreadPoolMinIocp

    Get/sets the minimum number of IOCP threads in the thread pool

    Declaration
    public int ThreadPoolMinIocp { get; set; }
    Property Value
    Type Description
    System.Int32

    ThreadPoolMinWorkers

    Get/sets the minimum number of worker threads in the thread pool

    Declaration
    public int ThreadPoolMinWorkers { get; set; }
    Property Value
    Type Description
    System.Int32

    TrashcanDeleteThreshold

    Time elapsed before a deleted item is removed from trashcan

    Declaration
    public TimeSpan TrashcanDeleteThreshold { get; set; }
    Property Value
    Type Description
    System.TimeSpan

    If no value is configured, default is 30 days (2 592 000 seconds)

    Remarks

    Set in web.config using the appSetting key 'iv:trashcanDeleteThresholdSeconds' and as value enter the number of seconds to wait

    UseLeadtoolsConversionLock

    If enabled, only one image can be loaded using leadtools, at the same time.

    Declaration
    public bool UseLeadtoolsConversionLock { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    Reset()

    Resets the settings runtime values to the configured values

    Declaration
    public void Reset()
    In This Article
    Back to top (c) Meriworks 2002-2022