Class FailureValueProvider
An implementation of IGetsValueFromObject which returns a failure result. This should always be the 'last' link in a chain of responsibility/decorator stack. If the execution reaches this class then getting a value has failed.
Inheritance
System.Object
FailureValueProvider
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Expressions.PathExpressions
Assembly: ZptSharp.dll
Syntax
public class FailureValueProvider : IGetsValueFromObject
Methods
| Improve this Doc View SourceTryGetValueAsync(String, Object, CancellationToken)
Returns a failure result, indicating that getting a value has not been possible.
Declaration
public Task<GetValueResult> TryGetValueAsync(string name, object object, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The value name. |
System.Object | object | The object from which to retrieve the value. |
System.Threading.CancellationToken | cancellationToken | An optional cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<GetValueResult> | An object indicating failure to get a named value from the object. |