Mark van Renswoude
2755e93440
- Upgrade to .NET 5 - Split functionality into libraries - Tabbed interface for multiple subscribers - Placeholder for publishing tab
15 lines
378 B
C#
15 lines
378 B
C#
using System.Collections.Generic;
|
|
|
|
namespace PettingZoo.RabbitMQ
|
|
{
|
|
public static class RabbitMQPropertiesExtensions
|
|
{
|
|
public static string ContentType(this IDictionary<string, string> properties)
|
|
{
|
|
return properties.TryGetValue(RabbitMQProperties.ContentType, out var value)
|
|
? value
|
|
: "";
|
|
}
|
|
}
|
|
}
|