Class ActorPath.Surrogate
This class represents a surrogate of an ActorPath. Its main use is to help during the serialization process.
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public sealed class ActorPath.Surrogate : ISurrogate, IEquatable<ActorPath.Surrogate>, IEquatable<ActorPath>
Constructors
| Edit this page View SourceSurrogate(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 SourcePath
The string representation of the actor path
Declaration
public string Path { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceEquals(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 |
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 |
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
| Edit this page View SourceFromSurrogate(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 |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Edit this page