Search Results for

    Show / Hide Table of Contents

    Class StashFactory

    Static factor used for creating Stash instances

    Inheritance
    object
    StashFactory
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Actor
    Assembly: Akka.dll
    Syntax
    public static class StashFactory

    Methods

    | Edit this page View Source

    CreateStash(IActorContext, IActorStash)

    Creates a new IStash for the given actorInstance. The stash type is determined by which IActorStash sub-interface the actor implements.

    Declaration
    public static IStash CreateStash(this IActorContext context, IActorStash actorInstance)
    Parameters
    Type Name Description
    IActorContext context

    The actor context used to configure the stash and its underlying mailbox.

    IActorStash actorInstance

    The actor instance whose runtime type determines the stash variant.

    Returns
    Type Description
    IStash

    A new IStash instance appropriate for the actor type.

    | Edit this page View Source

    CreateStash(IActorContext, Type)

    Creates a new IStash for the given actorType. Returns a BoundedStashImpl for IWithBoundedStash, an UnboundedStashImpl for IWithUnboundedStash, or an unrestricted stash for IWithUnrestrictedStash.

    Declaration
    public static IStash CreateStash(this IActorContext context, Type actorType)
    Parameters
    Type Name Description
    IActorContext context

    The actor context used to configure the stash and its underlying mailbox.

    Type actorType

    The actor Type. Must implement a sub-interface of IActorStash.

    Returns
    Type Description
    IStash

    A new IStash instance appropriate for the actor type.

    Exceptions
    Type Condition
    ArgumentException

    This exception is thrown if the given actorType implements an unrecognized subclass of IActorStash.

    | Edit this page View Source

    CreateStash<T>(IActorContext)

    Creates a new IStash for the actor type T using the given context. The stash type (bounded, unbounded, or unrestricted) is determined by which IActorStash sub-interface T implements.

    Declaration
    public static IStash CreateStash<T>(this IActorContext context) where T : ActorBase
    Parameters
    Type Name Description
    IActorContext context

    The actor context used to configure the stash and its underlying mailbox.

    Returns
    Type Description
    IStash

    A new IStash instance appropriate for the actor type.

    Type Parameters
    Name Description
    T

    The actor type. Must implement a sub-interface of IActorStash.

    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