Skip to content

Commit 4920610

Browse files
author
Vlad Alexandru Ionescu
committed
merging bug23990 into default
2 parents c5b617e + ada5630 commit 4920610

File tree

7 files changed

+25
-8
lines changed

7 files changed

+25
-8
lines changed

Local.props.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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 -->

dist-msi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ set -x
4949
CYGWIN=nontsec
5050

5151
### Overrideable vars
52-
test "$RABBIT_VSN" || RABBIT_VSN=0.0.0
52+
test "$RABBIT_VSN" || RABBIT_VSN=0.0.0.0
5353
test "$SKIP_MSIVAL2" || SKIP_MSIVAL2=
5454

5555
### Other, general vars

dist.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ CYGWIN=nontsec
5050

5151
### Overrideable vars
5252
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
5454
test "$WEB_URL" || WEB_URL=http://stage.rabbitmq.com/
5555
test "$UNOFFICIAL_RELEASE" || UNOFFICIAL_RELEASE=
5656
test "$MONO_DIST" || MONO_DIST=

projects/client/RabbitMQ.Client/src/client/impl/ModelBase.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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

projects/client/RabbitMQ.Client/src/tokenized/AssemblyInfo.cs.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

projects/client/Unit/src/unit/TestRecoverAfterCancel.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

projects/wcf/RabbitMQ.ServiceModel/src/tokenized/AssemblyInfo.cs.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}")]

0 commit comments

Comments
 (0)