using System; namespace RestEase { /// /// Marks a parameter as HTTP request message property /// [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Property, Inherited = false, AllowMultiple = false)] public class HttpRequestMessagePropertyAttribute : Attribute { /// /// Gets or sets the optional key of the parameter. Will use the parameter name if null /// public string? Key { get; set; } /// /// Initialises a new instance of the class /// public HttpRequestMessagePropertyAttribute() { } /// /// Initialises a new instance of the class, with the given key /// /// key public HttpRequestMessagePropertyAttribute(string key) { this.Key = key; } } }