private OrchestrationStatusQueryResult ConvertFrom(DurableStatusQueryResult statusContext)
        {
            var results = new List <DurableOrchestrationStatus>();

            foreach (var state in statusContext.OrchestrationState)
            {
                results.Add(DurableClient.ConvertOrchestrationStateToStatus(state));
            }

            var result = new OrchestrationStatusQueryResult
            {
                DurableOrchestrationState = results,
                ContinuationToken         = statusContext.ContinuationToken,
            };

            return(result);
        }
 internal EntityQueryResult(OrchestrationStatusQueryResult orchestrationResult)
 {
     this.Entities          = orchestrationResult.DurableOrchestrationState.Select(status => new DurableEntityStatus(status));
     this.ContinuationToken = orchestrationResult.ContinuationToken;
 }