@@ -31,8 +31,8 @@ namespace RabbitMQ.Client
3131 public override bool Equals(object obj) { }
3232 public override int GetHashCode() { }
3333 public override string ToString() { }
34- public static bool !=(RabbitMQ.Client.AmqpTimestamp left, RabbitMQ.Client.AmqpTimestamp right) { }
35- public static bool ==(RabbitMQ.Client.AmqpTimestamp left, RabbitMQ.Client.AmqpTimestamp right) { }
34+ public static bool operator !=(RabbitMQ.Client.AmqpTimestamp left, RabbitMQ.Client.AmqpTimestamp right) { }
35+ public static bool operator ==(RabbitMQ.Client.AmqpTimestamp left, RabbitMQ.Client.AmqpTimestamp right) { }
3636 }
3737 public class AsyncDefaultBasicConsumer : RabbitMQ.Client.IAsyncBasicConsumer, RabbitMQ.Client.IBasicConsumer
3838 {
@@ -684,18 +684,22 @@ namespace RabbitMQ.Client.Events
684684}
685685namespace RabbitMQ.Client.Exceptions
686686{
687+ [System.Serializable]
687688 public class AlreadyClosedException : RabbitMQ.Client.Exceptions.OperationInterruptedException
688689 {
689690 public AlreadyClosedException(RabbitMQ.Client.ShutdownEventArgs reason) { }
690691 }
692+ [System.Serializable]
691693 public class AuthenticationFailureException : RabbitMQ.Client.Exceptions.PossibleAuthenticationFailureException
692694 {
693695 public AuthenticationFailureException(string msg) { }
694696 }
697+ [System.Serializable]
695698 public class BrokerUnreachableException : System.IO.IOException
696699 {
697700 public BrokerUnreachableException(System.Exception Inner) { }
698701 }
702+ [System.Serializable]
699703 public class ChannelAllocationException : RabbitMQ.Client.Exceptions.ProtocolViolationException
700704 {
701705 public ChannelAllocationException() { }
@@ -708,6 +712,7 @@ namespace RabbitMQ.Client.Exceptions
708712 public int Channel { get; }
709713 public override ushort ReplyCode { get; }
710714 }
715+ [System.Serializable]
711716 public class ConnectFailureException : RabbitMQ.Client.Exceptions.ProtocolViolationException
712717 {
713718 public ConnectFailureException(string msg, System.Exception inner) { }
@@ -721,6 +726,7 @@ namespace RabbitMQ.Client.Exceptions
721726 public MalformedFrameException(string message) { }
722727 public override ushort ReplyCode { get; }
723728 }
729+ [System.Serializable]
724730 public class OperationInterruptedException : RabbitMQ.Client.Exceptions.RabbitMQClientException
725731 {
726732 protected OperationInterruptedException() { }
@@ -730,6 +736,7 @@ namespace RabbitMQ.Client.Exceptions
730736 protected OperationInterruptedException(string message, System.Exception inner) { }
731737 public RabbitMQ.Client.ShutdownEventArgs ShutdownReason { get; set; }
732738 }
739+ [System.Serializable]
733740 public class PacketNotRecognizedException : RabbitMQ.Client.Exceptions.RabbitMQClientException
734741 {
735742 public PacketNotRecognizedException(int transportHigh, int transportLow, int serverMajor, int serverMinor) { }
@@ -738,6 +745,7 @@ namespace RabbitMQ.Client.Exceptions
738745 public int TransportHigh { get; }
739746 public int TransportLow { get; }
740747 }
748+ [System.Serializable]
741749 public class PossibleAuthenticationFailureException : RabbitMQ.Client.Exceptions.RabbitMQClientException
742750 {
743751 public PossibleAuthenticationFailureException(string msg) { }
@@ -749,6 +757,7 @@ namespace RabbitMQ.Client.Exceptions
749757 public abstract ushort ReplyCode { get; }
750758 public virtual RabbitMQ.Client.ShutdownEventArgs ShutdownReason { get; }
751759 }
760+ [System.Serializable]
752761 public class ProtocolVersionMismatchException : RabbitMQ.Client.Exceptions.ProtocolViolationException
753762 {
754763 public ProtocolVersionMismatchException(int clientMajor, int clientMinor, int serverMajor, int serverMinor) { }
@@ -757,12 +766,14 @@ namespace RabbitMQ.Client.Exceptions
757766 public int ServerMajor { get; }
758767 public int ServerMinor { get; }
759768 }
769+ [System.Serializable]
760770 public class ProtocolViolationException : RabbitMQ.Client.Exceptions.RabbitMQClientException
761771 {
762772 public ProtocolViolationException() { }
763773 public ProtocolViolationException(string message) { }
764774 public ProtocolViolationException(string message, System.Exception inner) { }
765775 }
776+ [System.Serializable]
766777 public abstract class RabbitMQClientException : System.Exception
767778 {
768779 protected RabbitMQClientException() { }
@@ -787,6 +798,7 @@ namespace RabbitMQ.Client.Exceptions
787798 {
788799 public override ushort ReplyCode { get; }
789800 }
801+ [System.Serializable]
790802 public class UnexpectedMethodException : RabbitMQ.Client.Exceptions.ProtocolViolationException
791803 {
792804 public UnexpectedMethodException(ushort classId, ushort methodId, string methodName) { }
@@ -802,17 +814,20 @@ namespace RabbitMQ.Client.Exceptions
802814 public override ushort ReplyCode { get; }
803815 public override string ToString() { }
804816 }
817+ [System.Serializable]
805818 public class UnsupportedMethodException : System.NotSupportedException
806819 {
807820 public UnsupportedMethodException(string methodName) { }
808821 public string MethodName { get; }
809822 }
823+ [System.Serializable]
810824 public class UnsupportedMethodFieldException : System.NotSupportedException
811825 {
812826 public UnsupportedMethodFieldException(string methodName, string fieldName) { }
813827 public string FieldName { get; }
814828 public string MethodName { get; }
815829 }
830+ [System.Serializable]
816831 public class WireFormattingException : RabbitMQ.Client.Exceptions.ProtocolViolationException
817832 {
818833 public WireFormattingException(string message) { }
0 commit comments