Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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 @@ -152,7 +152,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.");
Comment thread
YunchuWang marked this conversation as resolved.
Resolved
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,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'.");
}
Comment thread
YunchuWang marked this conversation as resolved.
Resolved
}

Expand Down
Loading