Search Results for

    Show / Hide Table of Contents

    Class Hook<TRequest, TResponse>

    A specific hook.

    Inheritance
    System.Object
    Hook<TRequest, TResponse>
    Implements
    IHook
    Namespace: DirectScale.Disco.Extension.Hooks
    Assembly: DirectScale.Disco.Extension.Abstractions.dll
    Syntax
    public class Hook<TRequest, TResponse> : MarshalByRefObject, IHook
    Type Parameters
    Name Description
    TRequest
    TResponse

    Properties

    Id

    The Id of the hook

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

    IsDelegateHooked

    True if this hook is in use using the delegate assignment.

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

    IsDeprecated

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

    IsInterfaceHooked

    True if this hook is in use using service registration.

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

    Override

    The delgate to assign to when implementing the hook using a delegate override.

    Declaration
    public Hook<TRequest, TResponse>.OverrideDelegate Override { get; set; }
    Property Value
    Type Description
    Hook.OverrideDelegate<>

    RequestType

    The type of the Request object used in this hook.

    Declaration
    public Type RequestType { get; }
    Property Value
    Type Description
    System.Type

    ResponseType

    The type of the Response object used in this hook.

    Declaration
    public Type ResponseType { get; }
    Property Value
    Type Description
    System.Type

    Methods

    GetInterfaceType()

    The type of the generic IHook interface for this hook.

    Declaration
    public Type GetInterfaceType()
    Returns
    Type Description
    System.Type

    Implements

    IHook
    In This Article
    Back to top Copyright © 2022 DirectScale
    Generated by DocFX