Class QueryExecutionContext
This class hold the context to execute a code query.
public sealed class QueryExecutionContext
- Inheritance
-
QueryExecutionContext
- Inherited Members
- Extension Methods
Remarks
The minimal context to provide to execute a code query is the CodeBase.
Others parameters of the context are optional.
An instance of QueryExecutionContext is meant to be used with the extension method Execute(IQueryCompiledSuccess, QueryExecutionContext).
Constructor (1)
QueryExecutionContext(ICodeBase)
The constructor of this class, with the unique mandatory parameter that is the code base on which the query will be executed.
public QueryExecutionContext(ICodeBase codeBase)
Parameters
codeBaseICodeBase
Properties (6)
CQLinqQueryExecTimeOut
Get or set the time-out duration activated only for CQLinq queries, CQL queries being executed in a bounded short time
public TimeSpan? CQLinqQueryExecTimeOut { get; set; }
Property Value
Remarks
A null value for this property means that no time-out will be applied.
CodeBase
The ICodeBase object, against which the code query(ies) will be executed.
public ICodeBase CodeBase { get; }
Property Value
Remarks
This code-base parameter is set in the constructor and is then immutable.
DebtSettings
Get or set the debt-settings that will be applied to query-execution.
public DebtSettings DebtSettings { get; set; }
Property Value
Remarks
DebtSettings parameters that will be used are:
- DebtFactor
- DebtDefault
- AnnualInterestFactor
- AnnualInterestDefault
These parameters are only used in case the code query is a code rule.
IssuesSet
Get or set the IIssuesSet object used by code query that QueryRelyOn.IssuesSet.
public IIssuesSet IssuesSet { get; set; }
Property Value
Remarks
By default, an empty IIssuesSet object bound to this CodeBase is returned.
IssuesSetDiff
Get or set the IIssuesSetDiff object used by code query that QueryRelyOn.IssuesSetDiff.
public IIssuesSetDiff IssuesSetDiff { get; set; }
Property Value
Remarks
By default, an empty IIssuesSetDiff object bound to this CodeBase is returned.
JustMyCode
Get or set the code-base-view representing just-my-code, typically obtained through ComputeJustMyCode(IGroupOfGroups, ICodeBase).
public ICodeBaseView JustMyCode { get; set; }
Property Value
Remarks
If the code-base-view representing just-my-code is not set through the setter, this.