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 2
2
<Project ToolsVersion =" 3.5" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
3
<PropertyGroup >
4
4
<PropTargetFramework >v3.5</PropTargetFramework >
5
- <PropAssemblyVersion >0.0.0</PropAssemblyVersion >
5
+ <PropAssemblyVersion >0.0.0.0 </PropAssemblyVersion >
6
6
<PropUsingMono >false</PropUsingMono >
7
7
8
8
<!-- Assembly strong naming - $(MSBuildProjectDirectory) is the RabbitMQ.Client project directory -->
Original file line number Diff line number Diff line change 49
49
CYGWIN=nontsec
50
50
51
51
# ## Overrideable vars
52
- test " $RABBIT_VSN " || RABBIT_VSN=0.0.0
52
+ test " $RABBIT_VSN " || RABBIT_VSN=0.0.0.0
53
53
test " $SKIP_MSIVAL2 " || SKIP_MSIVAL2=
54
54
55
55
# ## Other, general vars
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ CYGWIN=nontsec
50
50
51
51
# ## Overrideable vars
52
52
test " $KEYFILE " || KEYFILE=rabbit-mock.snk
53
- test " $RABBIT_VSN " || RABBIT_VSN=0.0.0
53
+ test " $RABBIT_VSN " || RABBIT_VSN=0.0.0.0
54
54
test " $WEB_URL " || WEB_URL=http://stage.rabbitmq.com/
55
55
test " $UNOFFICIAL_RELEASE " || UNOFFICIAL_RELEASE=
56
56
test " $MONO_DIST " || MONO_DIST=
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ public abstract class ModelBase : IFullModel
70
70
private CallbackExceptionEventHandler m_callbackException ;
71
71
private FlowControlEventHandler m_flowControl ;
72
72
private BasicRecoverOkEventHandler m_basicRecoverOk ;
73
+ private IBasicConsumer m_defaultConsumer ;
73
74
74
75
public ManualResetEvent m_flowControlBlock = new ManualResetEvent ( true ) ;
75
76
private readonly object m_flowSendLock = new object ( ) ;
@@ -211,7 +212,17 @@ public event BasicRecoverOkEventHandler BasicRecoverOk
211
212
}
212
213
}
213
214
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
+ }
215
226
216
227
public ISession m_session ;
217
228
Original file line number Diff line number Diff line change @@ -55,5 +55,5 @@ using System.Runtime.InteropServices;
55
55
56
56
[assembly: Guid("32a32ed8-c871-45ad-86b3-f50723a7434b")]
57
57
58
- [assembly: AssemblyVersion("${PropAssemblyVersion}.0 ")]
58
+ [assembly: AssemblyVersion("${PropAssemblyVersion}")]
59
59
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ public class TestRecoverAfterCancel
58
58
IConnection Connection ;
59
59
IModel Channel ;
60
60
String Queue ;
61
+ int callbackCount ;
61
62
62
63
public int ModelNumber ( IModel model )
63
64
{
@@ -100,11 +101,16 @@ public void TestRecoverAfterCancel_()
100
101
[ Test ]
101
102
public void TestRecoverCallback ( )
102
103
{
103
- int callbackCount = 0 ;
104
- Channel . BasicRecoverOk += ( sender , eventArgs ) => callbackCount ++ ;
104
+ callbackCount = 0 ;
105
+ Channel . BasicRecoverOk += IncrCallback ;
105
106
Channel . BasicRecover ( true ) ;
106
107
Assert . AreEqual ( 1 , callbackCount ) ;
107
108
}
108
109
110
+ void IncrCallback ( IModel model , EventArgs args )
111
+ {
112
+ callbackCount ++ ;
113
+ }
114
+
109
115
}
110
116
}
Original file line number Diff line number Diff line change @@ -61,4 +61,4 @@ using System.Runtime.InteropServices;
61
61
62
62
// We don't provide an AssemblyFileVersion, which (according to MSDN)
63
63
// 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