/// <summary> /// Gets or adds the <see cref="AspNetCoreMessageProperty"/> to the message. /// </summary> /// <param name="properties"></param> /// <returns></returns> public static AspNetCoreMessageProperty GetOrAdd(MessageProperties properties) { return((AspNetCoreMessageProperty)properties.GetOrAdd(Name, _ => new AspNetCoreMessageProperty())); }