Search Results for

    Show / Hide Table of Contents

    Class DefaultPolicy<T>

    Inheritance
    System.Object
    DefaultPolicy<T>
    Implements
    IPolicy<T>
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: FreeSql.Internal.ObjectPool
    Assembly: FreeSql.dll
    Syntax
    public class DefaultPolicy<T> : IPolicy<T>
    Type Parameters
    Name Description
    T

    Fields

    | Improve this Doc View Source

    CreateObject

    Declaration
    public Func<T> CreateObject
    Field Value
    Type Description
    System.Func<T>
    | Improve this Doc View Source

    OnGetObject

    Declaration
    public Action<Object<T>> OnGetObject
    Field Value
    Type Description
    System.Action<Object<T>>

    Properties

    | Improve this Doc View Source

    AsyncGetCapacity

    Declaration
    public int AsyncGetCapacity { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    CheckAvailableInterval

    Declaration
    public int CheckAvailableInterval { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    IdleTimeout

    Declaration
    public TimeSpan IdleTimeout { get; set; }
    Property Value
    Type Description
    System.TimeSpan
    | Improve this Doc View Source

    IsAutoDisposeWithSystem

    Declaration
    public bool IsAutoDisposeWithSystem { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsThrowGetTimeoutException

    Declaration
    public bool IsThrowGetTimeoutException { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Name

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    PoolSize

    Declaration
    public int PoolSize { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    SyncGetTimeout

    Declaration
    public TimeSpan SyncGetTimeout { get; set; }
    Property Value
    Type Description
    System.TimeSpan
    | Improve this Doc View Source

    Weight

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

    Methods

    | Improve this Doc View Source

    OnAvailable()

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

    OnCheckAvailable(Object<T>)

    Declaration
    public bool OnCheckAvailable(Object<T> obj)
    Parameters
    Type Name Description
    Object<T> obj
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    OnCreate()

    Declaration
    public T OnCreate()
    Returns
    Type Description
    T
    | Improve this Doc View Source

    OnDestroy(T)

    Declaration
    public void OnDestroy(T obj)
    Parameters
    Type Name Description
    T obj
    | Improve this Doc View Source

    OnGet(Object<T>)

    Declaration
    public void OnGet(Object<T> obj)
    Parameters
    Type Name Description
    Object<T> obj
    | Improve this Doc View Source

    OnGetAsync(Object<T>)

    Declaration
    public Task OnGetAsync(Object<T> obj)
    Parameters
    Type Name Description
    Object<T> obj
    Returns
    Type Description
    System.Threading.Tasks.Task
    | Improve this Doc View Source

    OnGetTimeout()

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

    OnReturn(Object<T>)

    Declaration
    public void OnReturn(Object<T> obj)
    Parameters
    Type Name Description
    Object<T> obj
    | Improve this Doc View Source

    OnUnavailable()

    Declaration
    public void OnUnavailable()

    Implements

    IPolicy<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX