Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projects/RabbitMQ.Client/RabbitMQ.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="MinVer" Version="2.2.0" PrivateAssets="All" />
<PackageReference Include="MinVer" Version="2.3.0" PrivateAssets="All" />
<PackageReference Include="System.Memory" Version="4.5.4" />
<PackageReference Include="System.Threading.Channels" Version="4.7.1" />
</ItemGroup>
Expand Down
19 changes: 17 additions & 2 deletions projects/Unit/APIApproval.Approve.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ namespace RabbitMQ.Client
public override bool Equals(object obj) { }
public override int GetHashCode() { }
public override string ToString() { }
public static bool !=(RabbitMQ.Client.AmqpTimestamp left, RabbitMQ.Client.AmqpTimestamp right) { }
public static bool ==(RabbitMQ.Client.AmqpTimestamp left, RabbitMQ.Client.AmqpTimestamp right) { }
public static bool operator !=(RabbitMQ.Client.AmqpTimestamp left, RabbitMQ.Client.AmqpTimestamp right) { }
public static bool operator ==(RabbitMQ.Client.AmqpTimestamp left, RabbitMQ.Client.AmqpTimestamp right) { }
}
public class AsyncDefaultBasicConsumer : RabbitMQ.Client.IAsyncBasicConsumer, RabbitMQ.Client.IBasicConsumer
{
Expand Down Expand Up @@ -684,18 +684,22 @@ namespace RabbitMQ.Client.Events
}
namespace RabbitMQ.Client.Exceptions
{
[System.Serializable]
public class AlreadyClosedException : RabbitMQ.Client.Exceptions.OperationInterruptedException
{
public AlreadyClosedException(RabbitMQ.Client.ShutdownEventArgs reason) { }
}
[System.Serializable]
public class AuthenticationFailureException : RabbitMQ.Client.Exceptions.PossibleAuthenticationFailureException
{
public AuthenticationFailureException(string msg) { }
}
[System.Serializable]
public class BrokerUnreachableException : System.IO.IOException
{
public BrokerUnreachableException(System.Exception Inner) { }
}
[System.Serializable]
public class ChannelAllocationException : RabbitMQ.Client.Exceptions.ProtocolViolationException
{
public ChannelAllocationException() { }
Expand All @@ -708,6 +712,7 @@ namespace RabbitMQ.Client.Exceptions
public int Channel { get; }
public override ushort ReplyCode { get; }
}
[System.Serializable]
public class ConnectFailureException : RabbitMQ.Client.Exceptions.ProtocolViolationException
{
public ConnectFailureException(string msg, System.Exception inner) { }
Expand All @@ -721,6 +726,7 @@ namespace RabbitMQ.Client.Exceptions
public MalformedFrameException(string message) { }
public override ushort ReplyCode { get; }
}
[System.Serializable]
public class OperationInterruptedException : RabbitMQ.Client.Exceptions.RabbitMQClientException
{
protected OperationInterruptedException() { }
Expand All @@ -730,6 +736,7 @@ namespace RabbitMQ.Client.Exceptions
protected OperationInterruptedException(string message, System.Exception inner) { }
public RabbitMQ.Client.ShutdownEventArgs ShutdownReason { get; set; }
}
[System.Serializable]
public class PacketNotRecognizedException : RabbitMQ.Client.Exceptions.RabbitMQClientException
{
public PacketNotRecognizedException(int transportHigh, int transportLow, int serverMajor, int serverMinor) { }
Expand All @@ -738,6 +745,7 @@ namespace RabbitMQ.Client.Exceptions
public int TransportHigh { get; }
public int TransportLow { get; }
}
[System.Serializable]
public class PossibleAuthenticationFailureException : RabbitMQ.Client.Exceptions.RabbitMQClientException
{
public PossibleAuthenticationFailureException(string msg) { }
Expand All @@ -749,6 +757,7 @@ namespace RabbitMQ.Client.Exceptions
public abstract ushort ReplyCode { get; }
public virtual RabbitMQ.Client.ShutdownEventArgs ShutdownReason { get; }
}
[System.Serializable]
public class ProtocolVersionMismatchException : RabbitMQ.Client.Exceptions.ProtocolViolationException
{
public ProtocolVersionMismatchException(int clientMajor, int clientMinor, int serverMajor, int serverMinor) { }
Expand All @@ -757,12 +766,14 @@ namespace RabbitMQ.Client.Exceptions
public int ServerMajor { get; }
public int ServerMinor { get; }
}
[System.Serializable]
public class ProtocolViolationException : RabbitMQ.Client.Exceptions.RabbitMQClientException
{
public ProtocolViolationException() { }
public ProtocolViolationException(string message) { }
public ProtocolViolationException(string message, System.Exception inner) { }
}
[System.Serializable]
public abstract class RabbitMQClientException : System.Exception
{
protected RabbitMQClientException() { }
Expand All @@ -787,6 +798,7 @@ namespace RabbitMQ.Client.Exceptions
{
public override ushort ReplyCode { get; }
}
[System.Serializable]
public class UnexpectedMethodException : RabbitMQ.Client.Exceptions.ProtocolViolationException
{
public UnexpectedMethodException(ushort classId, ushort methodId, string methodName) { }
Expand All @@ -802,17 +814,20 @@ namespace RabbitMQ.Client.Exceptions
public override ushort ReplyCode { get; }
public override string ToString() { }
}
[System.Serializable]
public class UnsupportedMethodException : System.NotSupportedException
{
public UnsupportedMethodException(string methodName) { }
public string MethodName { get; }
}
[System.Serializable]
public class UnsupportedMethodFieldException : System.NotSupportedException
{
public UnsupportedMethodFieldException(string methodName, string fieldName) { }
public string FieldName { get; }
public string MethodName { get; }
}
[System.Serializable]
public class WireFormattingException : RabbitMQ.Client.Exceptions.ProtocolViolationException
{
public WireFormattingException(string message) { }
Expand Down
2 changes: 1 addition & 1 deletion projects/Unit/APIApproval.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
using System.Threading.Tasks;
using NUnit.Framework;
using PublicApiGenerator;
using Verify;
using VerifyNUnit;
using VerifyTests;

namespace RabbitMQ.Client.Unit
{
Expand Down
8 changes: 4 additions & 4 deletions projects/Unit/Unit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" />
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
<PackageReference Include="PublicApiGenerator" Version="10.0.2" />
<PackageReference Include="Verify.NUnit" Version="1.32.4" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
<PackageReference Include="PublicApiGenerator" Version="10.2.0" />
<PackageReference Include="Verify.NUnit" Version="6.9.0" />
</ItemGroup>

</Project>