Search Results for

    Show / Hide Table of Contents

    Struct FSMBase.Event<TD>

    All messages sent to the FSM<TState, TData> will be wrapped inside an FSMBase.Event<TD>, which allows pattern matching to extract both state and data.

    Implements
    INoSerializationVerificationNeeded
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Akka.Actor
    Assembly: Akka.dll
    Syntax
    public readonly struct FSMBase.Event<TD> : INoSerializationVerificationNeeded
    Type Parameters
    Name Description
    TD

    The state data for this event

    Constructors

    | Edit this page View Source

    Event(object, TD)

    Initializes a new instance of the Event

    Declaration
    public Event(object fsmEvent, TD stateData)
    Parameters
    Type Name Description
    object fsmEvent

    The message received by the FSM.

    TD stateData

    The current state data of the FSM.

    Properties

    | Edit this page View Source

    FsmEvent

    The message received by the FSM.

    Declaration
    public object FsmEvent { get; }
    Property Value
    Type Description
    object
    | Edit this page View Source

    StateData

    The current state data of the FSM.

    Declaration
    public TD StateData { get; }
    Property Value
    Type Description
    TD

    Methods

    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Implements

    INoSerializationVerificationNeeded

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET