Show / Hide Table of Contents

Class AsyncResultExpression

Represents return from asynchronous lambda function.

Inheritance
Object
AsyncResultExpression
Namespace: DotNext.Linq.Expressions
Assembly: DotNext.Metaprogramming.dll
Syntax
public sealed class AsyncResultExpression : Expression
Remarks

This expression turns async state machine into final state.

Constructors

| Improve this Doc View Source

AsyncResultExpression(Expression, Boolean)

Constructs non-void return from asynchronous lambda function.

Declaration
public AsyncResultExpression(Expression result, bool valueTask)
Parameters
Type Name Description
Expression result

An expression representing result to be returned from asynchronous lambda function.

Boolean valueTask

true, to represent the result as or .

| Improve this Doc View Source

AsyncResultExpression(Boolean)

Constructs void return from asynchronous lambda function.

Declaration
public AsyncResultExpression(bool valueTask)
Parameters
Type Name Description
Boolean valueTask

true, to represent the result as .

Properties

| Improve this Doc View Source

AsyncResult

An expression representing result to be returned from asynchronous lambda function.

Declaration
public Expression AsyncResult { get; }
Property Value
Type Description
Expression
| Improve this Doc View Source

CanReduce

Indicates that this expression can be reduced to well-known LINQ expression.

Declaration
public override bool CanReduce { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

NodeType

Expression type. Always returns .

Declaration
public override ExpressionType NodeType { get; }
Property Value
Type Description
ExpressionType
| Improve this Doc View Source

Type

Type of this expression.

Declaration
public override Type Type { get; }
Property Value
Type Description
Type
Remarks

The type of this expression is , , or .

Methods

| Improve this Doc View Source

Reduce()

Translates this expression into predefined set of expressions using Lowering technique.

Declaration
public override Expression Reduce()
Returns
Type Description
Expression

Translated expression.

| Improve this Doc View Source

VisitChildren(ExpressionVisitor)

Visit children expressions.

Declaration
protected override Expression VisitChildren(ExpressionVisitor visitor)
Parameters
Type Name Description
ExpressionVisitor visitor

Expression visitor.

Returns
Type Description
Expression

Potentially modified expression if one of children expressions is modified during visit.

Extension Methods

AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, CancellationToken)
ExpressionBuilder.Const<T>(T)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)

See Also

AsyncLambda<D>(Action<LambdaContext>)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX