Class FromHeaderAttribute
Used to indicate that a service endpoint parameter is to be obtained by parsing a request header value.
Namespace: Neon.ModelGen
Assembly: Neon.Common.dll
Syntax
[AttributeUsage(AttributeTargets.Parameter)]
public class FromHeaderAttribute : Attribute
Remarks
By default, this option will look for the HTTP header with the same name as the tagged endpoint parameter. This can be overriden by setting the Name property.
Constructors
FromHeaderAttribute()
Constructor.
Declaration
public FromHeaderAttribute()
Properties
Name
Optionally overrides the tagged service endpoint method property name when generating the client code.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |