Class AutoRegisterAttribute
- Namespace
- Apizr
- Assembly
- Apizr.dll
Tells Apizr to auto register a Manager for the provided api (works only with IServiceCollection extensions registration)
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Interface)]
public class AutoRegisterAttribute : BaseAddressAttribute, _Attribute
- Inheritance
-
AutoRegisterAttribute
- Implements
- Derived
- Inherited Members
Constructors
AutoRegisterAttribute(string)
Auto register a manager for the decorated api or crud entity
public AutoRegisterAttribute(string baseAddressOrPath)
Parameters
baseAddressOrPathstringThe web api base absolute address or relative path
AutoRegisterAttribute(Type, string)
Auto register a manager for the provided api
public AutoRegisterAttribute(Type webApiType, string baseAddressOrPath)
Parameters
webApiTypeTypeThe web api interface type to manage
baseAddressOrPathstringThe web api base absolute address or relative path
Properties
WebApiType
public Type WebApiType { get; }