src/Miles.Meta/Messaging/QueueNameAffixesAttribute.cs
/// <summary>
/// Gets the queue prefix for the supplied type, else falls back to the assembly.
/// </summary>
/// <param name="type">The type.</param>
/// <returns></returns>
Gets the queue prefix for the supplied type, else falls back to the assembly.
Gets the queue prefix for the supplied type else falls back to the assembly .
public static string GetQueueSuffix(this Type type)
        {
            var attrib = type.GetCustomAttribute<QueueNameAffixesAttribute>();
            return attrib?.Suffix ?? type.Assembly.GetQueueSuffix();
        }
public static string GetQueueSuffix ( this Type type ) { var attrib = type . GetCustomAttribute < QueueNameAffixesAttribute > ( ) ; return attrib ? . Suffix ?? type . Assembly . GetQueueSuffix ( ) ; }
Gets the queue prefix for the supplied type, else falls back to the assembly.
Gets the queue prefix for the supplied type else falls back to the assembly .
None
Type
this
type
None