Class WebApiAttribute
- Namespace
- Apizr
- Assembly
- Apizr.dll
Define general web api settings (could be defined with options builder)
[AttributeUsage(AttributeTargets.Interface)]
public class WebApiAttribute : Attribute
- Inheritance
-
WebApiAttribute
- Inherited Members
Constructors
WebApiAttribute()
Define a web api without any base absolute address or relative path (has to be defined fluently) but discoverable for auto registration
public WebApiAttribute()
WebApiAttribute(bool)
Define a web api without any base absolute address or relative path (has to be defined fluently) and make it discoverable for auto registration or not
public WebApiAttribute(bool isAutoRegistrable)
Parameters
isAutoRegistrable
boolMakes decorated interface registrable by assembly scanning
WebApiAttribute(string)
Define a web api with a base absolute address or relative path (if path, base address has to be defined fluently) and discoverable for auto registration
public WebApiAttribute(string baseAddressOrPath)
Parameters
baseAddressOrPath
stringThe web api base absolute address or relative path
WebApiAttribute(string, bool)
Define a web api with a base absolute address or relative path (if path, base address has to be defined fluently) and make it discoverable for auto registration or not
public WebApiAttribute(string baseAddressOrPath, bool isAutoRegistrable)
Parameters
baseAddressOrPath
stringThe web api base absolute address or relative path
isAutoRegistrable
boolMakes decorated interface registrable by assembly scanning
Properties
BaseAddressOrPath
The web api base absolute address or relative path
public string BaseAddressOrPath { get; }
Property Value
IsAutoRegistrable
Makes decorated interface registrable by assembly scanning
public bool IsAutoRegistrable { get; }