public override string ToString() { return(string.Format(CultureInfo.InvariantCulture, "QueueName[{0}], QueueDurable[{1}], QueueExclusive[{2}], QueueAutoDelete[{3}], QueueNoAck[{4}], QueueArguments[{5}], QueueBindRoutingKeys[{6}]", QueueName, QueueDurable, QueueExclusive, QueueAutoDelete, QueueNoAck, QueueArguments == null ? string.Empty : string.Join(",", QueueArguments.Select(kv => string.Format("[{0}:{1}]", kv.Key, kv.Value))), QueueBindRoutingKeys == null ? string.Empty : string.Join(";", QueueBindRoutingKeys.ToArray()))); }
public override string ToString() { return(string.Join(", ", new[] { $"name: {QueueName}", Durable ? "durable" : "", AutoDelete ? "auto-delete" : "", Exclusive ? "exclusive" : "", string.Join(", ", QueueArguments.Select(x => $"{x.Key}: {x.Value}")) }.Where(x => !string.IsNullOrWhiteSpace(x)))); }