Search Results for

    Show / Hide Table of Contents

    Class Case<T>

    Class Case with returning result.

    Inheritance
    Object
    Case<T>
    Implements
    IMatchResult
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Akka
    Assembly: Akka.dll
    Syntax
    public class Case<T> : IMatchResult
    Type Parameters
    Name Description
    T

    The type of return value

    Constructors

    | Improve this Doc View Source

    Case(Object)

    Initializes a new instance of the Case class.

    Declaration
    public Case(object message)
    Parameters
    Type Name Description
    Object message

    The message.

    Properties

    | Improve this Doc View Source

    WasHandled

    Gets a value indicating whether [was handled].

    Declaration
    public bool WasHandled { get; }
    Property Value
    Type Description
    Boolean

    true if [was handled]; otherwise, false.

    Methods

    | Improve this Doc View Source

    ResultOrDefault(Func<Object, T>)

    Defaults the specified action.

    Declaration
    public T ResultOrDefault(Func<object, T> function)
    Parameters
    Type Name Description
    Func<Object, T> function

    The default function.

    Returns
    Type Description
    T

    The result of the matching

    | Improve this Doc View Source

    With<TMessage>(Func<TMessage, T>)

    Withes the specified action.

    Declaration
    public Case<T> With<TMessage>(Func<TMessage, T> function)
    Parameters
    Type Name Description
    Func<TMessage, T> function

    The action.

    Returns
    Type Description
    Case<T>

    Case.

    Type Parameters
    Name Description
    TMessage

    The type of the t message.

    | Improve this Doc View Source

    With<TMessage>(Func<T>)

    Withes the specified action.

    Declaration
    public Case<T> With<TMessage>(Func<T> function)
    Parameters
    Type Name Description
    Func<T> function

    The function.

    Returns
    Type Description
    Case<T>

    Case.

    Type Parameters
    Name Description
    TMessage

    The type of the t message.

    Implements

    IMatchResult

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    PatternMatch.Match(Object)
    PatternMatch.Match<T>(Object)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(Object)
    In This Article
    • githubImprove this Doc
    • 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