OrchestrationInstanceStatusQueryBuilder is a builder to create a StorageTable Query
示例#1
0
 public override Task <DurableStatusQueryResult> GetStateAsync(DateTime createdTimeFrom, DateTime?createdTimeTo, IEnumerable <OrchestrationStatus> runtimeStatus, int top, string continuationToken, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(this.QueryStateAsync(
                OrchestrationInstanceStatusQueryCondition.Parse(createdTimeFrom, createdTimeTo, runtimeStatus)
                .ToTableQuery <OrchestrationInstanceStatus>(),
                top,
                continuationToken,
                cancellationToken));
 }
示例#2
0
        /// <summary>
        /// Parse is a factory method of the OrchestrationInstanceStatusConditionQuery
        /// </summary>
        /// <param name="createdTimeFrom">CreatedTimeFrom</param>
        /// <param name="createdTimeTo">CreatedTimeTo</param>
        /// <param name="runtimeStatus">RuntimeStatus</param>
        /// <returns></returns>
        public static OrchestrationInstanceStatusQueryCondition Parse(DateTime createdTimeFrom, DateTime?createdTimeTo, IEnumerable <OrchestrationStatus> runtimeStatus)
        {
            var condition = new OrchestrationInstanceStatusQueryCondition();

            condition.CreatedTimeFrom = createdTimeFrom;
            condition.CreatedTimeTo   = (createdTimeTo != null) ? (DateTime)createdTimeTo : default(DateTime);
            condition.RuntimeStatus   = runtimeStatus;
            return(condition);
        }
        /// <summary>
        /// Parse is a factory method of the OrchestrationInstanceStatusConditionQuery
        /// </summary>
        /// <param name="createdTimeFrom">CreatedTimeFrom</param>
        /// <param name="createdTimeTo">CreatedTimeTo</param>
        /// <param name="runtimeStatus">RuntimeStatus</param>
        /// <returns></returns>
        public static OrchestrationInstanceStatusQueryCondition Parse(DateTime createdTimeFrom, DateTime?createdTimeTo, IEnumerable <OrchestrationStatus> runtimeStatus)
        {
            var condition = new OrchestrationInstanceStatusQueryCondition
            {
                CreatedTimeFrom = createdTimeFrom,
                CreatedTimeTo   = createdTimeTo ?? default(DateTime),
                RuntimeStatus   = runtimeStatus
            };

            return(condition);
        }
 public virtual Task <DurableStatusQueryResult> GetStateAsync(OrchestrationInstanceStatusQueryCondition condition, int top, string continuationToken, CancellationToken cancellationToken = default(CancellationToken))
 {
     throw new NotSupportedException();
 }
示例#5
0
 public override Task <IList <OrchestrationState> > GetStateAsync(DateTime createdTimeFrom, DateTime?createdTimeTo, IEnumerable <OrchestrationStatus> runtimeStatus, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(this.QueryStateAsync(OrchestrationInstanceStatusQueryCondition.Parse(createdTimeFrom, createdTimeTo, runtimeStatus)
                                 .ToTableQuery <OrchestrationInstanceStatus>(), cancellationToken));
 }