diff --git a/sdkdocs/dotnet/content/en/dotnet-sdk-docs/dotnet-workflow/dotnet-workflowclient-usage.md b/sdkdocs/dotnet/content/en/dotnet-sdk-docs/dotnet-workflow/dotnet-workflowclient-usage.md index abb99e86bdc..c9c5d36b2a5 100644 --- a/sdkdocs/dotnet/content/en/dotnet-sdk-docs/dotnet-workflow/dotnet-workflowclient-usage.md +++ b/sdkdocs/dotnet/content/en/dotnet-sdk-docs/dotnet-workflow/dotnet-workflowclient-usage.md @@ -27,6 +27,17 @@ as well as its own dependencies. {{% /alert %}} +### Change gRPC Message Size Limits +You can also configure gRPC message size limits for the workflow client during registration. This is useful when workflow payloads are larger than the default gRPC limits. + +```csharp +services + .AddDaprWorkflowClient() + .WithGrpcMessageSizeLimits( + maxReceiveMessageSize: 16 * 1024 * 1024, + maxSendMessageSize: 16 * 1024 * 1024); +``` + ### Singleton Registration By default, the `AddDaprWorkflow` method registers the `DaprWorkflowClient` and associated services using a singleton lifetime. This means