File tree Expand file tree Collapse file tree 7 files changed +25
-8
lines changed
wcf/RabbitMQ.ServiceModel/src/tokenized Expand file tree Collapse file tree 7 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 22<Project ToolsVersion =" 3.5" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
33 <PropertyGroup >
44 <PropTargetFramework >v3.5</PropTargetFramework >
5- <PropAssemblyVersion >0.0.0</PropAssemblyVersion >
5+ <PropAssemblyVersion >0.0.0.0 </PropAssemblyVersion >
66 <PropUsingMono >false</PropUsingMono >
77
88 <!-- Assembly strong naming - $(MSBuildProjectDirectory) is the RabbitMQ.Client project directory -->
Original file line number Diff line number Diff line change 4949CYGWIN=nontsec
5050
5151# ## Overrideable vars
52- test " $RABBIT_VSN " || RABBIT_VSN=0.0.0
52+ test " $RABBIT_VSN " || RABBIT_VSN=0.0.0.0
5353test " $SKIP_MSIVAL2 " || SKIP_MSIVAL2=
5454
5555# ## Other, general vars
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ CYGWIN=nontsec
5050
5151# ## Overrideable vars
5252test " $KEYFILE " || KEYFILE=rabbit-mock.snk
53- test " $RABBIT_VSN " || RABBIT_VSN=0.0.0
53+ test " $RABBIT_VSN " || RABBIT_VSN=0.0.0.0
5454test " $WEB_URL " || WEB_URL=http://stage.rabbitmq.com/
5555test " $UNOFFICIAL_RELEASE " || UNOFFICIAL_RELEASE=
5656test " $MONO_DIST " || MONO_DIST=
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ public abstract class ModelBase : IFullModel
7070 private CallbackExceptionEventHandler m_callbackException ;
7171 private FlowControlEventHandler m_flowControl ;
7272 private BasicRecoverOkEventHandler m_basicRecoverOk ;
73+ private IBasicConsumer m_defaultConsumer ;
7374
7475 public ManualResetEvent m_flowControlBlock = new ManualResetEvent ( true ) ;
7576 private readonly object m_flowSendLock = new object ( ) ;
@@ -211,7 +212,17 @@ public event BasicRecoverOkEventHandler BasicRecoverOk
211212 }
212213 }
213214
214- public IBasicConsumer DefaultConsumer { get ; set ; }
215+ public IBasicConsumer DefaultConsumer
216+ {
217+ get
218+ {
219+ return m_defaultConsumer ;
220+ }
221+ set
222+ {
223+ m_defaultConsumer = value ;
224+ }
225+ }
215226
216227 public ISession m_session ;
217228
Original file line number Diff line number Diff line change @@ -55,5 +55,5 @@ using System.Runtime.InteropServices;
5555
5656[assembly: Guid("32a32ed8-c871-45ad-86b3-f50723a7434b")]
5757
58- [assembly: AssemblyVersion("${PropAssemblyVersion}.0 ")]
58+ [assembly: AssemblyVersion("${PropAssemblyVersion}")]
5959
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ public class TestRecoverAfterCancel
5858 IConnection Connection ;
5959 IModel Channel ;
6060 String Queue ;
61+ int callbackCount ;
6162
6263 public int ModelNumber ( IModel model )
6364 {
@@ -100,11 +101,16 @@ public void TestRecoverAfterCancel_()
100101 [ Test ]
101102 public void TestRecoverCallback ( )
102103 {
103- int callbackCount = 0 ;
104- Channel . BasicRecoverOk += ( sender , eventArgs ) => callbackCount ++ ;
104+ callbackCount = 0 ;
105+ Channel . BasicRecoverOk += IncrCallback ;
105106 Channel . BasicRecover ( true ) ;
106107 Assert . AreEqual ( 1 , callbackCount ) ;
107108 }
108109
110+ void IncrCallback ( IModel model , EventArgs args )
111+ {
112+ callbackCount ++ ;
113+ }
114+
109115 }
110116}
Original file line number Diff line number Diff line change @@ -61,4 +61,4 @@ using System.Runtime.InteropServices;
6161
6262// We don't provide an AssemblyFileVersion, which (according to MSDN)
6363// means that AssemblyVersion will be used for the Win32 file version.
64- [assembly: AssemblyVersion("${PropAssemblyVersion}.0 ")]
64+ [assembly: AssemblyVersion("${PropAssemblyVersion}")]
You can’t perform that action at this time.
0 commit comments