Skip to content

Commit 8f7a0b4

Browse files
Merge pull request #833 from rabbitmq/rabbitmq-dotnet-client-819
Restore Constants class as public
2 parents 7aa735a + eb7d035 commit 8f7a0b4

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

projects/Apigen/apigen/Apigen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ internal sealed class Protocol : {ImplNamespaceBase}.ProtocolBase
485485
EmitLine("");
486486
EmitContentHeaderReader();
487487
EmitLine(" }");
488-
EmitLine(" internal sealed class Constants");
488+
EmitLine(" public static class Constants");
489489
EmitLine(" {");
490490
foreach (KeyValuePair<string, int> de in m_constants)
491491
{

projects/Unit/APIApproval.Approve.verified.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,36 @@ namespace RabbitMQ.Client.Exceptions
782782
public object Offender { get; }
783783
}
784784
}
785+
namespace RabbitMQ.Client.Framing
786+
{
787+
public static class Constants
788+
{
789+
public const int AccessRefused = 403;
790+
public const int ChannelError = 504;
791+
public const int CommandInvalid = 503;
792+
public const int ConnectionForced = 320;
793+
public const int ContentTooLarge = 311;
794+
public const int FrameBody = 3;
795+
public const int FrameEnd = 206;
796+
public const int FrameError = 501;
797+
public const int FrameHeader = 2;
798+
public const int FrameHeartbeat = 8;
799+
public const int FrameMethod = 1;
800+
public const int FrameMinSize = 4096;
801+
public const int InternalError = 541;
802+
public const int InvalidPath = 402;
803+
public const int NoConsumers = 313;
804+
public const int NotAllowed = 530;
805+
public const int NotFound = 404;
806+
public const int NotImplemented = 540;
807+
public const int PreconditionFailed = 406;
808+
public const int ReplySuccess = 200;
809+
public const int ResourceError = 506;
810+
public const int ResourceLocked = 405;
811+
public const int SyntaxError = 502;
812+
public const int UnexpectedFrame = 505;
813+
}
814+
}
785815
namespace RabbitMQ.Client.Logging
786816
{
787817
[System.Diagnostics.Tracing.EventSource(Name="rabbitmq-dotnet-client")]

0 commit comments

Comments
 (0)