Anvil
|
Indicates a property as a service dependency to be injected. More...
Public Member Functions | |
InjectAttribute () | |
Initializes a new instance of the InjectAttribute class. More... | |
InjectAttribute (string serviceName) | |
Initializes a new instance of the InjectAttribute class. More... | |
Properties | |
bool | Optional [get] |
Marks this dependency as optional. Optional dependencies do not throw exceptions if the service is not available. More... | |
string | ServiceName [get] |
Gets the name of the service to be injected. More... | |
Indicates a property as a service dependency to be injected.
|
inline |
Initializes a new instance of the InjectAttribute class.
|
inline |
Initializes a new instance of the InjectAttribute class.
serviceName | The name of the service to be injected. |
|
get |
Marks this dependency as optional. Optional dependencies do not throw exceptions if the service is not available.
|
get |
Gets the name of the service to be injected.