_ = delivery.Topic switch
{
_ when delivery.Topic.Contains( "event" )
=> Brush.Color = Colors.Yellow,
_ when delivery.Topic.Contains( "command" )
=> Brush.Color = Colors.Green,
_ => Brush.Color = Colors.Beige
};
_ = delivery.Topic switch
{
_ when delivery.Topic.Contains( "event" )
=> Brush.Color = Colors.Yellow,
_ when delivery.Topic.Contains( "command" )
=> Brush.Color = Colors.Green,
_ => Brush.Color = Colors.Beige
};