Search Results for

    Show / Hide Table of Contents

    Class ActorPath.Surrogate

    This class represents a surrogate of an ActorPath. Its main use is to help during the serialization process.

    Inheritance
    object
    ActorPath.Surrogate
    Implements
    ISurrogate
    IEquatable<ActorPath.Surrogate>
    IEquatable<ActorPath>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Actor
    Assembly: Akka.dll
    Syntax
    public sealed class ActorPath.Surrogate : ISurrogate, IEquatable<ActorPath.Surrogate>, IEquatable<ActorPath>

    Constructors

    | Edit this page View Source

    Surrogate(string)

    Initializes a new instance of the ActorPath.Surrogate class.

    Declaration
    public Surrogate(string path)
    Parameters
    Type Name Description
    string path

    The string representation of the actor path.

    Properties

    | Edit this page View Source

    Path

    The string representation of the actor path

    Declaration
    public string Path { get; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    Equals(ActorPath?)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(ActorPath? other)
    Parameters
    Type Name Description
    ActorPath other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    | Edit this page View Source

    Equals(Surrogate?)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(ActorPath.Surrogate? other)
    Parameters
    Type Name Description
    ActorPath.Surrogate other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    | Edit this page View Source

    Equals(object?)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)
    | Edit this page View Source

    FromSurrogate(ActorSystem)

    Creates an ActorPath encapsulated by this surrogate.

    Declaration
    public ISurrogated FromSurrogate(ActorSystem system)
    Parameters
    Type Name Description
    ActorSystem system

    The actor system that contains this actor path.

    Returns
    Type Description
    ISurrogated

    The ActorPath encapsulated by this surrogate.

    Exceptions
    Type Condition
    SerializationException

    Thrown when surrogate Path could not be parsed into a valid ActorPath

    | Edit this page View Source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    object.GetHashCode()

    Implements

    ISurrogate
    IEquatable<T>
    IEquatable<T>

    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