Skip to content

Commit 12a73a3

Browse files
committed
Have ported some changes from V7 + Reviewed conditional compiles
1 parent d557ffd commit 12a73a3

18 files changed

+28
-54
lines changed

projects/RabbitMQ.Client/client/exceptions/AlreadyClosedException.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ namespace RabbitMQ.Client.Exceptions
3636
/// <summary>Thrown when the application tries to make use of a
3737
/// session or connection that has already been shut
3838
/// down.</summary>
39-
#if !NETSTANDARD1_5
4039
[Serializable]
41-
#endif
4240
public class AlreadyClosedException : OperationInterruptedException
4341
{
4442
///<summary>Construct an instance containing the given

projects/RabbitMQ.Client/client/exceptions/AuthenticationFailureException.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ namespace RabbitMQ.Client.Exceptions
3535
{
3636
/// <summary> Thrown when the cause is an
3737
/// authentication failure. </summary>
38-
#if !NETSTANDARD1_5
3938
[Serializable]
40-
#endif
4139
public class AuthenticationFailureException : PossibleAuthenticationFailureException
4240
{
4341
public AuthenticationFailureException(string msg) : base(msg)

projects/RabbitMQ.Client/client/exceptions/BrokerUnreachableException.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ namespace RabbitMQ.Client.Exceptions
3636
{
3737
///<summary>Thrown when no connection could be opened during a
3838
///ConnectionFactory.CreateConnection attempt.</summary>
39-
#if !NETSTANDARD1_5
4039
[Serializable]
41-
#endif
4240
public class BrokerUnreachableException : IOException
4341
{
4442
///<summary>Construct a BrokerUnreachableException. The inner exception is

projects/RabbitMQ.Client/client/exceptions/ChannelAllocationException.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ namespace RabbitMQ.Client.Exceptions
3636
/// <summary> Thrown when a SessionManager cannot allocate a new
3737
/// channel number, or the requested channel number is already in
3838
/// use. </summary>
39-
#if !NETSTANDARD1_5
4039
[Serializable]
41-
#endif
4240
public class ChannelAllocationException : ProtocolViolationException
4341
{
4442
/// <summary>

projects/RabbitMQ.Client/client/exceptions/ConnectFailureException.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@
3434
namespace RabbitMQ.Client.Exceptions
3535
{
3636
/// <summary>Thrown when a connection to the broker fails</summary>
37-
#if !NETSTANDARD1_5
3837
[Serializable]
39-
#endif
4038
public class ConnectFailureException : ProtocolViolationException
4139
{
4240
public ConnectFailureException(string msg, Exception inner)

projects/RabbitMQ.Client/client/exceptions/OperationInterruptedException.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ namespace RabbitMQ.Client.Exceptions
4040
/// operation, an OperationInterruptedException will be thrown to
4141
/// the caller of IModel.QueueDeclare.
4242
/// </summary>
43-
#if !NETSTANDARD1_5
4443
[Serializable]
45-
#endif
4644
public class OperationInterruptedException
4745
// TODO: inherit from OperationCanceledException
4846
: RabbitMQClientException

projects/RabbitMQ.Client/client/exceptions/PacketNotRecognizedException.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ namespace RabbitMQ.Client.Exceptions
4141
///The peer's {'A','M','Q','P',txHi,txLo,major,minor} packet is
4242
///decoded into instances of this class.
4343
///</remarks>
44-
#if !NETSTANDARD1_5
4544
[Serializable]
46-
#endif
4745
public class PacketNotRecognizedException : RabbitMQClientException
4846
{
4947
///<summary>Fills the new instance's properties with the values passed in.</summary>

projects/RabbitMQ.Client/client/exceptions/PossibleAuthenticationFailureException.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ namespace RabbitMQ.Client.Exceptions
3535
{
3636
/// <summary> Thrown when the likely cause is an
3737
/// authentication failure. </summary>
38-
#if !NETSTANDARD1_5
3938
[Serializable]
40-
#endif
4139
public class PossibleAuthenticationFailureException : RabbitMQClientException
4240
{
4341
public PossibleAuthenticationFailureException(string msg, Exception inner) : base(msg, inner)

projects/RabbitMQ.Client/client/exceptions/ProtocolVersionMismatchException.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ namespace RabbitMQ.Client.Exceptions
3636
///<summary>Thrown to indicate that the peer does not support the
3737
///wire protocol version we requested immediately after opening
3838
///the TCP socket.</summary>
39-
#if !NETSTANDARD1_5
4039
[Serializable]
41-
#endif
4240
public class ProtocolVersionMismatchException : ProtocolViolationException
4341
{
4442
///<summary>Fills the new instance's properties with the values passed in.</summary>

projects/RabbitMQ.Client/client/exceptions/ProtocolViolationException.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@
3333

3434
namespace RabbitMQ.Client.Exceptions
3535
{
36-
#if !NETSTANDARD1_5
3736
[Serializable]
38-
#endif
3937
public class ProtocolViolationException : RabbitMQClientException
4038
{
4139
public ProtocolViolationException(string message) : base(message)

0 commit comments

Comments
 (0)