@@ -11,9 +11,10 @@ namespace RabbitMQ.Client
11
11
public AmqpTcpEndpoint(string hostName, int portOrMinusOne = -1) { }
12
12
public AmqpTcpEndpoint(System.Uri uri, RabbitMQ.Client.SslOption ssl) { }
13
13
public AmqpTcpEndpoint(string hostName, int portOrMinusOne, RabbitMQ.Client.SslOption ssl) { }
14
+ public AmqpTcpEndpoint(string hostName, int portOrMinusOne, RabbitMQ.Client.SslOption ssl, uint maxMessageSize) { }
14
15
public System.Net.Sockets.AddressFamily AddressFamily { get; set; }
15
16
public string HostName { get; set; }
16
- public uint MaxMessageSize { get; set; }
17
+ public uint MaxMessageSize { get; }
17
18
public int Port { get; set; }
18
19
public RabbitMQ.Client.IProtocol Protocol { get; }
19
20
public RabbitMQ.Client.SslOption Ssl { get; set; }
@@ -151,6 +152,7 @@ namespace RabbitMQ.Client
151
152
{
152
153
public const ushort DefaultChannelMax = 2047;
153
154
public const uint DefaultFrameMax = 0u;
155
+ public const uint DefaultMaxMessageSize = 134217728u;
154
156
public const string DefaultPass = "guest";
155
157
public const string DefaultUser = "guest";
156
158
public const string DefaultVHost = "/";
@@ -170,6 +172,7 @@ namespace RabbitMQ.Client
170
172
public System.Func<System.Collections.Generic.IEnumerable<RabbitMQ.Client.AmqpTcpEndpoint>, RabbitMQ.Client.IEndpointResolver> EndpointResolverFactory { get; set; }
171
173
public System.TimeSpan HandshakeContinuationTimeout { get; set; }
172
174
public string HostName { get; set; }
175
+ public uint MaxMessageSize { get; set; }
173
176
public System.TimeSpan NetworkRecoveryInterval { get; set; }
174
177
public string Password { get; set; }
175
178
public int Port { get; set; }
@@ -208,7 +211,6 @@ namespace RabbitMQ.Client
208
211
public const int CommandInvalid = 503;
209
212
public const int ConnectionForced = 320;
210
213
public const int ContentTooLarge = 311;
211
- public const uint DefaultMaxMessageSizeInBytes = 134217728u;
212
214
public const int FrameBody = 3;
213
215
public const int FrameEnd = 206;
214
216
public const int FrameError = 501;
@@ -825,11 +827,15 @@ namespace RabbitMQ.Client.Exceptions
825
827
}
826
828
public abstract class HardProtocolException : RabbitMQ.Client.Exceptions.ProtocolException
827
829
{
830
+ protected readonly bool _canShutdownCleanly;
828
831
protected HardProtocolException(string message) { }
832
+ protected HardProtocolException(string message, bool canShutdownCleanly) { }
833
+ public bool CanShutdownCleanly { get; }
829
834
}
830
835
public class MalformedFrameException : RabbitMQ.Client.Exceptions.HardProtocolException
831
836
{
832
837
public MalformedFrameException(string message) { }
838
+ public MalformedFrameException(string message, bool canShutdownCleanly) { }
833
839
public override ushort ReplyCode { get; }
834
840
}
835
841
[System.Serializable]
0 commit comments