Class GeneratedMethodAttribute
Used to tag generated service client methods with additional metadata that will be used when validatating the a generated service client actually matches an ASP.NET service implementation.
Namespace: Neon.ModelGen
Assembly: Neon.Common.dll
Syntax
[AttributeUsage(AttributeTargets.Method)]
public class GeneratedMethodAttribute : Attribute
Constructors
GeneratedMethodAttribute()
Constructor.
Declaration
public GeneratedMethodAttribute()
Properties
ApiVersion
The API version used when calling this method or null
when no version is specified.
Declaration
public string ApiVersion { get; set; }
Property Value
Type | Description |
---|---|
string |
DefinedAs
The method name from the service model definition.
Declaration
public string DefinedAs { get; set; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
The HTTP method for the endpoint.
Declaration
public string HttpMethod { get; set; }
Property Value
Type | Description |
---|---|
string |
Returns
The method result type.
Declaration
public Type Returns { get; set; }
Property Value
Type | Description |
---|---|
Type |
RouteTemplate
The route template.
Declaration
public string RouteTemplate { get; set; }
Property Value
Type | Description |
---|---|
string |