Skip to content

Injecting

Feynmen edited this page Jun 18, 2018 · 1 revision

Inject Attribute Description

In Controllers you can using Managers Inject Attribute. Inject working only with a property.

Inject Features

  • Inject by property type
[Inject] 
private TestManager testManager { set; get; }
  • Inject by atribute parametr
[Inject(typeof(TestManager))]
private ITestManager testManager { set; get; }

Clone this wiki locally