Class TrackingToken
Used to define a token that will be associated with a System.
Inheritance
Implements
Namespace: EPiServer.Async
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public class TrackingToken : Object, IEquatable<TrackingToken>
Constructors
TrackingToken()
Initializes a new instance of the Tracking
Declaration
public TrackingToken()
TrackingToken(Guid)
Initializes a new instance of the Tracking
Declaration
public TrackingToken(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The identifier. |
Properties
Id
The identifier for the token used to track progress.
Declaration
public Guid Id { get; }
Property Value
Type | Description |
---|---|
System. |
None
Returns an empty TrackingToken value.
Declaration
public static TrackingToken None { get; }
Property Value
Type | Description |
---|---|
Tracking |
Methods
Equals(TrackingToken)
Determines if other
is considered equal with this instance.
Declaration
public bool Equals(TrackingToken other)
Parameters
Type | Name | Description |
---|---|---|
Tracking |
other | The other Tracking |
Returns
Type | Description |
---|---|
System. |
true if the tokens are considered equal else false. |
Equals(Object)
Determines if obj
is considered equal with this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System. |
obj | The other Tracking |
Returns
Type | Description |
---|---|
System. |
true if the tokens are considered equal else false. |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
Parse(String)
Parses value
to a Tracking
Declaration
public static TrackingToken Parse(string value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The string to parse. |
Returns
Type | Description |
---|---|
Tracking |
A tracking token |
Exceptions
Type | Condition |
---|---|
System. |
In case the string is not in expected format. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
TryParse(String, out TrackingToken)
Tries to parses value
to a Tracking
Declaration
public static bool TryParse(string value, out TrackingToken token)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The string to parse. |
Tracking |
token | The parsed token or null if |
Returns
Type | Description |
---|---|
System. |
true if |