using ZB.MOM.WW.MxGateway.Contracts;

namespace ZB.MOM.WW.MxGateway.Server.Configuration;

/// <summary>
/// Configuration options for the worker protocol version.
/// </summary>
public sealed class ProtocolOptions
{
    /// <summary>
    /// Gets or sets the worker protocol version.
    /// </summary>
    public uint WorkerProtocolVersion { get; init; } = GatewayContractInfo.WorkerProtocolVersion;

    /// <summary>Gets or sets the maximum gRPC message size in bytes.</summary>
    public int MaxGrpcMessageBytes { get; init; } = 16 * 1024 * 1024;
}
