StrangeIoC
0.6.0
The IoC/Binding Framework for Unity3D and C#
|
The [PostConstruct]
attribute marks one or more methods as PostConstructors.
More...
Public Member Functions | |
PostConstruct (int p) | |
Properties | |
int | priority [get, set] |
The [PostConstruct]
attribute marks one or more methods as PostConstructors.
A PostConstructor is triggered immediately after injection. This allows you to use use a PostConstructor in much the same way as a Constructor, safe in the knowledge that there will be no null pointers on injected dependencies. PostConstructors do not accept arguments.
You may optionally include a priority int on your PostConstructor. This allows for multiple PostConstruction methods which will fire in a predictable order.