From 6e71464f95e98d134f0f3e83ce6d2c226af77c60 Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Thu, 30 Nov 2023 16:04:27 -0500 Subject: [PATCH] Small fix to ProtobufFeature --- src/IceRpc.Protobuf/ProtobufFeature.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/IceRpc.Protobuf/ProtobufFeature.cs b/src/IceRpc.Protobuf/ProtobufFeature.cs index 6863bdf20..463e5f653 100644 --- a/src/IceRpc.Protobuf/ProtobufFeature.cs +++ b/src/IceRpc.Protobuf/ProtobufFeature.cs @@ -8,11 +8,12 @@ public sealed class ProtobufFeature : IProtobufFeature /// Gets a with default values for all properties. public static IProtobufFeature Default { get; } = new DefaultProtobufFeature(); - /// - public int MaxMessageLength { get; init; } + /// Gets the maximum length of an encoded Protobuf message, in bytes. + /// The maximum length of a Protobuf message. Defaults to 1 MB. + public int MaxMessageLength { get; } /// - public ProtobufEncodeOptions? EncodeOptions { get; init; } + public ProtobufEncodeOptions? EncodeOptions { get; } /// Constructs a Protobuf feature. /// The maximum message length. Use -1 to get the default value.