Unosquare
    Show / Hide Table of Contents

    Class ConfigurationLockSource

    Signals to associated instances of LockToken that an object's configuration is locked.

    Inheritance
    Object
    LockTokenSource
    ConfigurationLockSource
    Inherited Members
    LockTokenSource.IsLocked
    LockTokenSource.Token
    LockTokenSource.Lock()
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: EmbedIO.Utilities
    Syntax
    public class ConfigurationLockSource : LockTokenSource

    Constructors

    ConfigurationLockSource(String)

    Initializes a new instance of the ConfigurationLockSource class.

    The Message property of exceptions thrown by the ThrowIfLocked() method of tokens associated with this instance will include the specified description, in the following fashion: "The configuration of {ownerDescription} is locked and cannot be further changed.".

    Declaration
    public ConfigurationLockSource(string ownerDescription)
    Parameters
    Type Name Description
    String ownerDescription

    A brief description of the object owning the configuration.

    ConfigurationLockSource(Type)

    Initializes a new instance of the ConfigurationLockSource class.

    The Message property of exceptions thrown by the ThrowIfLocked() method of tokens associated with this instance will mention the type of the object whose configuration is locked, including namespaces.

    Declaration
    public ConfigurationLockSource(Type ownerType)
    Parameters
    Type Name Description
    Type ownerType

    The type of the object owning the configuration.

    See Also

    LockTokenSource
    LockToken

    Comments

    Back to top Copyright © 2017-2019 Unosquare