Class AwaitExpression
Represents suspension point in the execution of the lambda function until the awaited task completes.
Namespace: DotNext.Linq.Expressions
Assembly: DotNext.Metaprogramming.dll
Syntax
public sealed class AwaitExpression : Expression
Constructors
| Improve this Doc View SourceAwaitExpression(Expression, Boolean)
Constructs await expression.
Declaration
public AwaitExpression(Expression expression, bool configureAwait = false)
Parameters
Type | Name | Description |
---|---|---|
Expression | expression | An expression providing asynchronous result in the form or |
Boolean | configureAwait | true to call |
Properties
| Improve this Doc View SourceCanReduce
Always return true.
Declaration
public override bool CanReduce { get; }
Property Value
Type | Description |
---|---|
Boolean |
NodeType
Gets expression node type.
Declaration
public override ExpressionType NodeType { get; }
Property Value
Type | Description |
---|---|
ExpressionType |
Type
Gets result type of asynchronous operation.
Declaration
public override Type Type { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
| Improve this Doc View SourceReduce()
Translates this expression into predefined set of expressions using Lowering technique.
Declaration
public override Expression Reduce()
Returns
Type | Description |
---|---|
Expression | Translated expression. |
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. |