Skip to content

Commit

Permalink
Small fix to ProtobufFeature (#3826)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardnormier authored Nov 30, 2023
1 parent 2b1e89f commit a0f497d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/IceRpc.Protobuf/ProtobufFeature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ public sealed class ProtobufFeature : IProtobufFeature
/// <summary>Gets a <see cref="IProtobufFeature" /> with default values for all properties.</summary>
public static IProtobufFeature Default { get; } = new DefaultProtobufFeature();

/// <inheritdoc/>
public int MaxMessageLength { get; init; }
/// <summary>Gets the maximum length of an encoded Protobuf message, in bytes.</summary>
/// <value>The maximum length of a Protobuf message. Defaults to <c>1</c> MB.</value>
public int MaxMessageLength { get; }

/// <inheritdoc/>
public ProtobufEncodeOptions? EncodeOptions { get; init; }
public ProtobufEncodeOptions? EncodeOptions { get; }

/// <summary>Constructs a Protobuf feature.</summary>
/// <param name="maxMessageLength">The maximum message length. Use <c>-1</c> to get the default value.</param>
Expand Down

0 comments on commit a0f497d

Please sign in to comment.