Skip to content

Commit

Permalink
(#279) Use named channel pool for response
Browse files Browse the repository at this point in the history
  • Loading branch information
pardahlman committed Oct 8, 2017
1 parent c140a46 commit d7b2a4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/RawRabbit.Operations.Respond/Core/RespondKey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ public static class RespondKey
public const string IncomingMessageType = "IncommingMessageType";
public const string PublicationAddress = "PublicationAddress";
public const string Configuration = "Configuration";
public const string ChannelPoolName = "ChannelPool:Respond";
}
}
2 changes: 1 addition & 1 deletion src/RawRabbit.Operations.Respond/RespondExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static class RespondExtension
.Use<StageMarkerMiddleware>(StageMarkerOptions.For(RespondStage.ResponseSerialized))
.Use<ReplyToExtractionMiddleware>()
.Use<StageMarkerMiddleware>(StageMarkerOptions.For(RespondStage.ReplyToExtracted))
.Use<TransientChannelMiddleware>()
.Use<PooledChannelMiddleware>(new PooledChannelOptions{ PoolNameFunc = c => RespondKey.ChannelPoolName})
.Use<StageMarkerMiddleware>(StageMarkerOptions.For(RespondStage.RespondChannelCreated))
.Use<BasicPublishMiddleware>(new BasicPublishOptions
{
Expand Down

0 comments on commit d7b2a4f

Please sign in to comment.