1
0
mirror of synced 2024-12-22 01:13:09 +01: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)
return string.IsNullOrEmpty(ReplyTo) ? null : ReplyTo;
correlationId = SendToExchange ? RoutingKey : Queue;
correlationId = PublisherViewStrings.ReplyToCorrelationIdPrefix + (SendToExchange ? RoutingKey : Queue);
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>
/// Looks up a localized string similar to Publish: {0}.
/// </summary>

View File

@ -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>