public T1(T2 t2, Scoped1 scoped1, Scoped2 scoped2, Single1 single1) { T2 = t2; Scoped1 = scoped1; Scoped2 = scoped2; Single1 = single1; }
public T3(T4 t4, Scoped1 scoped1, Scoped3 scoped3, Single3 single3) { T4 = t4; Scoped1 = scoped1; Scoped3 = scoped3; Single3 = single3; }
public T2(T3 t3, T4 t4, Scoped1 scoped1, Scoped3 scoped3, Single1 single1, Single2 single2) { T3 = t3; T4 = t4; Scoped1 = scoped1; Scoped3 = scoped3; Single1 = single1; Single2 = single2; }
public ActionResult <IEnumerable <string> > Get() { //return new string[] { "value1", "value2" }; string transient1 = $"Transient 1 : {Transient1.GetID().ToString()}"; string transient2 = $"Transient 2 : {Transient2.GetID().ToString()}"; string scoped1 = $"Scoped 1 : {Scoped1.GetID().ToString()}"; string scoped2 = $"Scoped 2 : {Scoped2.GetID().ToString()}"; string singleton1 = $"Singleton 1 : {Singleton1.GetID().ToString()}"; string singleton2 = $"Singleton 2 : {Singleton2.GetID().ToString()}"; return(new string[] { transient1, transient2, scoped1, scoped2, singleton1, singleton2 }); }
public R( Single1 single1, Single2 single2, Scoped1 scoped1, Scoped2 scoped2, Trans1 trans1, Trans2 trans2, ScopedFac1 scopedFac1, ScopedFac2 scopedFac2, SingleObj1 singleObj1, SingleObj2 singleObj2 ) { Single1 = single1; Single2 = single2; Scoped1 = scoped1; Scoped2 = scoped2; Trans1 = trans1; Trans2 = trans2; ScopedFac1 = scopedFac1; ScopedFac2 = scopedFac2; SingleObj1 = singleObj1; SingleObj2 = singleObj2; }