Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ public Task<ITriggerData> BindAsync(object value, ValueBindingContext context)
}
else
{
throw new ArgumentException($"Don't know how to bind to {value?.GetType().Name ?? "null"}.", nameof(value));
throw new InvalidOperationException(
"Durable entity functions do not support direct invocation. " +
"To interact with an entity, use an HTTP trigger function or the DurableClient binding to call entity methods.");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ public Task<ITriggerData> BindAsync(object? value, ValueBindingContext context)
}
else
{
throw new ArgumentException($"Don't know how to bind to {value?.GetType().Name ?? "null"}.", nameof(value));
throw new InvalidOperationException(
"Durable orchestrator functions do not support direct invocation. " +
"To start an orchestration, use an HTTP trigger function or the DurableClient binding to call 'StartNewAsync'.");
}
}

Expand Down
Loading