File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
projects/wcf/RabbitMQ.ServiceModel/src/serviceModel Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ namespace RabbitMQ.ServiceModel
63
63
using System ;
64
64
using System . Text ;
65
65
66
+ // We use spec version 0-9 for common constants such as frame types,
67
+ // error codes, and the frame end byte, since they don't vary *within
68
+ // the versions we support*. Obviously we may need to revisit this if
69
+ // that ever changes.
70
+ using CommonFraming = RabbitMQ . Client . Framing . v0_9 ;
71
+
66
72
/// <summary>
67
73
/// Properties of the current RabbitMQ Service Model Version
68
74
/// </summary>
@@ -74,7 +80,7 @@ public static class CurrentVersion
74
80
75
81
internal static class StatusCodes
76
82
{
77
- public const int Ok = 200 ;
83
+ public const int Ok = CommonFraming . Constants . ReplySuccess ;
78
84
}
79
85
80
86
}
Original file line number Diff line number Diff line change @@ -69,6 +69,12 @@ namespace RabbitMQ.ServiceModel
69
69
using RabbitMQ . Client ;
70
70
using RabbitMQ . Client . Events ;
71
71
72
+ // We use spec version 0-9 for common constants such as frame types,
73
+ // error codes, and the frame end byte, since they don't vary *within
74
+ // the versions we support*. Obviously we may need to revisit this if
75
+ // that ever changes.
76
+ using CommonFraming = RabbitMQ . Client . Framing . v0_9 ;
77
+
72
78
internal sealed class RabbitMQInputChannel : RabbitMQInputChannelBase
73
79
{
74
80
private RabbitMQTransportBindingElement m_bindingElement ;
@@ -109,7 +115,7 @@ public override Message Receive(TimeSpan timeout)
109
115
}
110
116
catch ( EndOfStreamException )
111
117
{
112
- if ( m_messageQueue == null || m_messageQueue . ShutdownReason != null && m_messageQueue . ShutdownReason . ReplyCode != 200 )
118
+ if ( m_messageQueue == null || m_messageQueue . ShutdownReason != null && m_messageQueue . ShutdownReason . ReplyCode != CommonFraming . Constants . ReplySuccess )
113
119
{
114
120
OnFaulted ( ) ;
115
121
}
You can’t perform that action at this time.
0 commit comments