Skip to content

Commit

Permalink
- v9.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
eben-roux committed Aug 6, 2017
1 parent 1b95a88 commit 72fd642
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Shuttle.Esb/MessageHandling/DefaultMessageHandlerInvoker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ public MessageHandlerInvokeResult Invoke(IPipelineEvent pipelineEvent)
_transportMessageFactory, _pipelineFactory, _subscriptionManager, transportMessage, message,
state.GetActiveState());

state.SetHandlerContext((IMessageSender)handlerContext);

contextMethod.Method.Invoke(handler, new[] {handlerContext});
}
finally
Expand Down
6 changes: 3 additions & 3 deletions Shuttle.Esb/Pipeline/PipelineStateExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@ public static void SetDurationToIgnoreOnFailure(this IState state, TimeSpan[] ti
state.Add(StateKeys.DurationToIgnoreOnFailure, timeSpans);
}

public static IMessageSender GetHandlerContext(this IState state)
public static object GetHandlerContext(this IState state)
{
return state.Get<IMessageSender>(StateKeys.HandlerContext);
return state.Get<object>(StateKeys.HandlerContext);
}

public static void SetHandlerContext(this IState state, IMessageSender handlerContext)
public static void SetHandlerContext(this IState state, object handlerContext)
{
state.Replace(StateKeys.HandlerContext, handlerContext);
}
Expand Down
4 changes: 2 additions & 2 deletions Shuttle.Esb/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
[assembly: AssemblyTitle("Shuttle.Esb for .NET Framework 4.6.2")]
#endif

[assembly: AssemblyVersion("9.0.1.0")]
[assembly: AssemblyVersion("9.0.2.0")]
[assembly: AssemblyCopyright("Copyright © Eben Roux 2017")]
[assembly: AssemblyProduct("Shuttle.Esb")]
[assembly: AssemblyCompany("Shuttle")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyInformationalVersion("9.0.1")]
[assembly: AssemblyInformationalVersion("9.0.2")]
[assembly: ComVisible(false)]

0 comments on commit 72fd642

Please sign in to comment.