1
0
mirror of synced 2024-11-22 12:43:51 +00:00

Add prefix to CorrelationId to better indicate it's a reply

This commit is contained in:
Mark van Renswoude 2022-01-12 20:57:30 +01:00
parent 76d4c8fa85
commit 6bcc23a5d0
3 changed files with 15 additions and 3 deletions

View File

@ -283,7 +283,7 @@ namespace PettingZoo.UI.Tab.Publisher
if (ReplyToSpecified) if (ReplyToSpecified)
return string.IsNullOrEmpty(ReplyTo) ? null : ReplyTo; return string.IsNullOrEmpty(ReplyTo) ? null : ReplyTo;
correlationId = SendToExchange ? RoutingKey : Queue; correlationId = PublisherViewStrings.ReplyToCorrelationIdPrefix + (SendToExchange ? RoutingKey : Queue);
return tabFactory.CreateReplySubscriberTab(connection); return tabFactory.CreateReplySubscriberTab(connection);
} }

View File

@ -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> /// <summary>
/// Looks up a localized string similar to Publish: {0}. /// Looks up a localized string similar to Publish: {0}.
/// </summary> /// </summary>

View File

@ -112,10 +112,10 @@
<value>2.0</value> <value>2.0</value>
</resheader> </resheader>
<resheader name="reader"> <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>
<resheader name="writer"> <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> </resheader>
<data name="CommandPublish" xml:space="preserve"> <data name="CommandPublish" xml:space="preserve">
<value>Publish</value> <value>Publish</value>
@ -153,6 +153,9 @@
<data name="OptionMessageTypeTapeti" xml:space="preserve"> <data name="OptionMessageTypeTapeti" xml:space="preserve">
<value>Tapeti message</value> <value>Tapeti message</value>
</data> </data>
<data name="ReplyToCorrelationIdPrefix" xml:space="preserve">
<value>Re: </value>
</data>
<data name="TabTitle" xml:space="preserve"> <data name="TabTitle" xml:space="preserve">
<value>Publish: {0}</value> <value>Publish: {0}</value>
</data> </data>