Table of Contents

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 bool

Makes 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 string

The 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 string

The web api base absolute address or relative path

isAutoRegistrable bool

Makes decorated interface registrable by assembly scanning

Properties

BaseAddressOrPath

The web api base absolute address or relative path

public string BaseAddressOrPath { get; }

Property Value

string

IsAutoRegistrable

Makes decorated interface registrable by assembly scanning

public bool IsAutoRegistrable { get; }

Property Value

bool