Add prefix to CorrelationId to better indicate it's a reply
This commit is contained in:
parent
76d4c8fa85
commit
6bcc23a5d0
@ -283,7 +283,7 @@ namespace PettingZoo.UI.Tab.Publisher
|
||||
if (ReplyToSpecified)
|
||||
return string.IsNullOrEmpty(ReplyTo) ? null : ReplyTo;
|
||||
|
||||
correlationId = SendToExchange ? RoutingKey : Queue;
|
||||
correlationId = PublisherViewStrings.ReplyToCorrelationIdPrefix + (SendToExchange ? RoutingKey : Queue);
|
||||
return tabFactory.CreateReplySubscriberTab(connection);
|
||||
}
|
||||
|
||||
|
@ -168,6 +168,15 @@ namespace PettingZoo.UI.Tab.Publisher {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Re: .
|
||||
/// </summary>
|
||||
public static string ReplyToCorrelationIdPrefix {
|
||||
get {
|
||||
return ResourceManager.GetString("ReplyToCorrelationIdPrefix", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Publish: {0}.
|
||||
/// </summary>
|
||||
|
@ -112,10 +112,10 @@
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="CommandPublish" xml:space="preserve">
|
||||
<value>Publish</value>
|
||||
@ -153,6 +153,9 @@
|
||||
<data name="OptionMessageTypeTapeti" xml:space="preserve">
|
||||
<value>Tapeti message</value>
|
||||
</data>
|
||||
<data name="ReplyToCorrelationIdPrefix" xml:space="preserve">
|
||||
<value>Re: </value>
|
||||
</data>
|
||||
<data name="TabTitle" xml:space="preserve">
|
||||
<value>Publish: {0}</value>
|
||||
</data>
|
||||
|
Loading…
Reference in New Issue
Block a user