Show / Hide Table of Contents

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
IGetsValueFromObject
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 Source

TryGetValueAsync(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.

Implements

IGetsValueFromObject
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX