@@ -11,9 +11,10 @@ namespace RabbitMQ.Client
1111 public AmqpTcpEndpoint(string hostName, int portOrMinusOne = -1) { }
1212 public AmqpTcpEndpoint(System.Uri uri, RabbitMQ.Client.SslOption ssl) { }
1313 public AmqpTcpEndpoint(string hostName, int portOrMinusOne, RabbitMQ.Client.SslOption ssl) { }
14+ public AmqpTcpEndpoint(string hostName, int portOrMinusOne, RabbitMQ.Client.SslOption ssl, uint maxMessageSize) { }
1415 public System.Net.Sockets.AddressFamily AddressFamily { get; set; }
1516 public string HostName { get; set; }
16- public uint MaxMessageSize { get; set; }
17+ public uint MaxMessageSize { get; }
1718 public int Port { get; set; }
1819 public RabbitMQ.Client.IProtocol Protocol { get; }
1920 public RabbitMQ.Client.SslOption Ssl { get; set; }
@@ -151,6 +152,7 @@ namespace RabbitMQ.Client
151152 {
152153 public const ushort DefaultChannelMax = 2047;
153154 public const uint DefaultFrameMax = 0u;
155+ public const uint DefaultMaxMessageSize = 134217728u;
154156 public const string DefaultPass = "guest";
155157 public const string DefaultUser = "guest";
156158 public const string DefaultVHost = "/";
@@ -170,6 +172,7 @@ namespace RabbitMQ.Client
170172 public System.Func<System.Collections.Generic.IEnumerable<RabbitMQ.Client.AmqpTcpEndpoint>, RabbitMQ.Client.IEndpointResolver> EndpointResolverFactory { get; set; }
171173 public System.TimeSpan HandshakeContinuationTimeout { get; set; }
172174 public string HostName { get; set; }
175+ public uint MaxMessageSize { get; set; }
173176 public System.TimeSpan NetworkRecoveryInterval { get; set; }
174177 public string Password { get; set; }
175178 public int Port { get; set; }
@@ -208,7 +211,6 @@ namespace RabbitMQ.Client
208211 public const int CommandInvalid = 503;
209212 public const int ConnectionForced = 320;
210213 public const int ContentTooLarge = 311;
211- public const uint DefaultMaxMessageSizeInBytes = 134217728u;
212214 public const int FrameBody = 3;
213215 public const int FrameEnd = 206;
214216 public const int FrameError = 501;
@@ -825,11 +827,15 @@ namespace RabbitMQ.Client.Exceptions
825827 }
826828 public abstract class HardProtocolException : RabbitMQ.Client.Exceptions.ProtocolException
827829 {
830+ protected readonly bool _canShutdownCleanly;
828831 protected HardProtocolException(string message) { }
832+ protected HardProtocolException(string message, bool canShutdownCleanly) { }
833+ public bool CanShutdownCleanly { get; }
829834 }
830835 public class MalformedFrameException : RabbitMQ.Client.Exceptions.HardProtocolException
831836 {
832837 public MalformedFrameException(string message) { }
838+ public MalformedFrameException(string message, bool canShutdownCleanly) { }
833839 public override ushort ReplyCode { get; }
834840 }
835841 [System.Serializable]
0 commit comments