Class InstanceIdentifier
The identifier used to distinguish the instances of the same type. Used mostly for logging and debugging.
Inheritance
System.Object
InstanceIdentifier
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Silverback.Core.dll
Syntax
public sealed class InstanceIdentifier : IEquatable<InstanceIdentifier>
Constructors
|
Improve this doc
View source
InstanceIdentifier(Nullable<Guid>)
Declaration
public InstanceIdentifier(Guid? value = null)
Parameters
Type |
Name |
Description |
System.Nullable<System.Guid> |
value |
The System.Guid representing the identifier value. If null a random one will be generated.
|
Properties
|
Improve this doc
View source
Value
Declaration
public string Value { get; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this doc
View source
Equals(InstanceIdentifier)
Declaration
public bool Equals(InstanceIdentifier other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this doc
View source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
|
Improve this doc
View source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
|
Improve this doc
View source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
The identifier value.
|
Overrides
System.Object.ToString()
Operators
|
Improve this doc
View source
Equality(InstanceIdentifier, InstanceIdentifier)
Declaration
public static bool operator ==(InstanceIdentifier left, InstanceIdentifier right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this doc
View source
Implicit(InstanceIdentifier to String)
Declaration
public static implicit operator string (InstanceIdentifier identifier)
Parameters
Returns
Type |
Description |
System.String |
The identifier value.
|
|
Improve this doc
View source
Inequality(InstanceIdentifier, InstanceIdentifier)
Declaration
public static bool operator !=(InstanceIdentifier left, InstanceIdentifier right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>