using Sers.SersLoader; using Vit.Core.Util.Common; using Vit.Core.Util.ComponentModel.Api; using Vit.Core.Util.ComponentModel.Data; using Vit.Ioc; namespace App.Ioc.Station.Controllers { public class DemoController : IApiController { /// /// Demo1-注释 /// /// ArgModelDesc-returns [SsRoute("demo")] public ApiReturn Demo1() { return new { Singleton1 = IocHelp.Create(), Singleton2 = IocHelp.Create(), Scoped1 = IocHelp.Create(), Scoped2 = IocHelp.Create(), Transient1 = IocHelp.Create(), Transient2 = IocHelp.Create(), }; } public interface ISingleton { } public interface IScoped { } public interface ITransient { } public class ArgModel: IScoped, ITransient, ISingleton { /// /// /// public string guid { get; set; } = CommonHelp.NewGuid(); } } }