Skip to content

Commit

Permalink
IMessageInformation.HandlerType now returns the resolved type instead…
Browse files Browse the repository at this point in the history
… of the registered interface type.
  • Loading branch information
judwhite committed Apr 1, 2015
1 parent e56e1b6 commit dab065b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion NsqSharp.Tests/Utils/Channels/ChanTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ public void SelectTwoChannels()

var list = new List<int>();

t1.Start();
t2.Start();
t1.Start();

Select
.DebugName("SelectTwoChannels")
Expand Down
2 changes: 0 additions & 2 deletions NsqSharp/Bus/Logging/IMessageInformation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ internal class MessageInformation : IMessageInformation, ICurrentMessageInformat
public object DeserializedMessageBody { get; set; }
public DateTime Started { get; set; }
public DateTime? Finished { get; set; }
public bool BackoffTriggered { get; set; }
public DateTime? RequeuedUntil { get; set; }
}

internal class FailedMessageInformation : IFailedMessageInformation
Expand Down
6 changes: 1 addition & 5 deletions NsqSharp/Bus/MessageDistributor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public void HandleMessage(Message message)
try
{
handler = _objectBuilder.GetInstance(_handlerType);
messageInformation.HandlerType = handler.GetType();
}
catch (Exception ex)
{
Expand Down Expand Up @@ -158,9 +159,6 @@ public void HandleMessage(Message message)
else
message.Finish();

messageInformation.BackoffTriggered = message.BackoffTriggered;
messageInformation.RequeuedUntil = message.RequeuedUntil;

_messageAuditor.TryOnFailed(_logger, _bus,
new FailedMessageInformation
(
Expand All @@ -175,8 +173,6 @@ public void HandleMessage(Message message)
}

messageInformation.Finished = DateTime.UtcNow;
messageInformation.BackoffTriggered = message.BackoffTriggered;
messageInformation.RequeuedUntil = message.RequeuedUntil;

_messageAuditor.TryOnSucceeded(_logger, _bus, messageInformation);
}
Expand Down
2 changes: 1 addition & 1 deletion NsqSharp/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.3.2")]
[assembly: AssemblyVersion("0.3.3")]
4 changes: 2 additions & 2 deletions nuget/NsqSharp.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>NsqSharp</id>
<title>NsqSharp</title>
<version>0.3.2</version>
<version>0.3.3</version>
<authors>Judson White</authors>
<owners>Judson White</owners>
<licenseUrl>https://raw.githubusercontent.com/judwhite/NsqSharp/master/LICENSE</licenseUrl>
Expand All @@ -12,7 +12,7 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Client library for NSQ, a realtime distributed messaging platform. http://nsq.io</description>
<summary>Client library for NSQ, a realtime distributed messaging platform. http://nsq.io</summary>
<releaseNotes>Initial release.</releaseNotes>
<releaseNotes>Minor change: IMessageInformation.HandlerType now returns the resolved type instead of the registered interface type.</releaseNotes>
<copyright>Copyright 2015</copyright>
<tags>nsq queue esb service bus distributed messaging</tags>
</metadata>
Expand Down

0 comments on commit dab065b

Please sign in to comment.