Skip to content
ModularityKit.Mutator ModularityKit.Mutator Docs
  • Home
  • Core
  • Governance
  • Redis
  • API
Search Results for

    Show / Hide Table of Contents

    Class SideEffectDataContractRegistry

    Stores registrations that map side effect payload contracts to CLR types. Registered types allow serializers and integration layers to rehydrate typed payloads from stable contract identifiers instead of inferring payload shape at runtime.

    Inheritance
    object
    SideEffectDataContractRegistry
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: ModularityKit.Mutator.Abstractions.Effects
    Assembly: ModularityKit.Mutator.dll
    Syntax
    public static class SideEffectDataContractRegistry

    Methods

    | Edit this page View Source

    GetRequiredContract(Type)

    Reads the declared side effect data contract for CLR type.

    Declaration
    public static SideEffectDataContractAttribute GetRequiredContract(Type dataType)
    Parameters
    Type Name Description
    Type dataType

    The payload type.

    Returns
    Type Description
    SideEffectDataContractAttribute

    The declared side effect data contract.

    | Edit this page View Source

    GetRequiredContract<TData>()

    Reads the declared side effect data contract for CLR type.

    Declaration
    public static SideEffectDataContractAttribute GetRequiredContract<TData>()
    Returns
    Type Description
    SideEffectDataContractAttribute

    The declared side effect data contract.

    Type Parameters
    Name Description
    TData

    The payload type.

    | Edit this page View Source

    Register(Type)

    Registers typed side effect payload contract.

    Declaration
    public static void Register(Type dataType)
    Parameters
    Type Name Description
    Type dataType

    The payload type to register.

    | Edit this page View Source

    Register<TData>()

    Registers typed side effect payload contract.

    Declaration
    public static void Register<TData>()
    Type Parameters
    Name Description
    TData

    The payload type to register.

    | Edit this page View Source

    TryResolve(string, int, out Type?)

    Attempts to resolve payload CLR type from side effect data contract.

    Declaration
    public static bool TryResolve(string contractType, int contractVersion, out Type? dataType)
    Parameters
    Type Name Description
    string contractType

    The stable contract identifier.

    int contractVersion

    The contract version.

    Type dataType

    The resolved CLR type when present.

    Returns
    Type Description
    bool

    true when the contract is registered; otherwise false.

    • Edit this page
    • View Source
    In this article
    ModularityKit.Mutator Generated from XML docs and published from main. Back to top