Search Results for

    Show / Hide Table of Contents

    Class CacheScope

    Object scope

    Inheritance
    System.Object
    CacheScope
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Simplic.PlugIn.Logistics
    Assembly: Simplic.PlugIn.Logistics.dll
    Syntax
    [Obsolete("Will be moved to the simplic framework ASAP!")]
    public class CacheScope

    Constructors

    | Improve this Doc View Source

    CacheScope()

    Initialize new scope

    Declaration
    public CacheScope()

    Properties

    | Improve this Doc View Source

    Parent

    Gets or sets the parent scope

    Declaration
    public CacheScope Parent { get; set; }
    Property Value
    Type Description
    CacheScope

    Methods

    | Improve this Doc View Source

    Clear()

    Clear cache

    Declaration
    public void Clear()
    | Improve this Doc View Source

    Get<T>(String, Func<String, T>)

    Get item from cache

    Declaration
    public T Get<T>(string id, Func<string, T> create)
    Parameters
    Type Name Description
    System.String id

    Item id

    System.Func<System.String, T> create

    Delegate for creating new items

    Returns
    Type Description
    T

    New or existing item

    Type Parameters
    Name Description
    T

    Item type

    | Improve this Doc View Source

    GetScope()

    Get scope to use. If no parent exists, the current scope will be used

    Declaration
    public CacheScope GetScope()
    Returns
    Type Description
    CacheScope

    Scope instance

    Extension Methods

    CacheScopeExtension.GetContact(CacheScope, Guid)
    CacheScopeExtension.GetTelematicWorkflowByContactGuid(CacheScope, Guid)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx