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 Complex( Service1 service1, Service2 service2, Usecase1 usecase1, Usecase2 usecase2, Transient1 transient1, Transient2 transient2) { Service1 = service1; Service2 = service2; Usecase1 = usecase1; Usecase2 = usecase2; Transient1 = transient1; Transient2 = transient2; }
public ITransient1 ProvideTransient(Transient1 transient) { return(transient); }
public ITransient1 ProvideTransient(Transient1 transient) => transient;