Hello, when I try to use the GetAllInstancesAsync() Method:
var runtimeStatus = new List<OrchestrationRuntimeStatus>
{
OrchestrationRuntimeStatus.Completed
};
var instances = client.GetAllInstancesAsync(
new OrchestrationQuery
{
Statuses = runtimeStatus,
ContinuationToken = continuationToken,
});
throws an Exception:
Status(StatusCode="Unknown", Detail="Exception was thrown by handler.")
If i try to get all Instances without filters, works fine.
var instances = client.GetAllInstancesAsync();
bool any = await instances
.Where(
x => x.RuntimeStatus == OrchestrationRuntimeStatus.Running ||
x.RuntimeStatus == OrchestrationRuntimeStatus.Pending)
.AnyAsync();
Any Idea?