コード例 #1
0
ファイル: CustomService.cs プロジェクト: Vick20170116/ASP.NET
 public CustomService(IDiSampleTransient transient,
                      IDiSampleScoped scoped,
                      IDiSampleSingleton singleton)
 {
     Transient = transient;
     Scoped    = scoped;
     Singleton = singleton;
 }
コード例 #2
0
        public HomeController(IDiSampleTransient transient, IDiSampleScoped scoped, IDiSampleSingleton singleton,
                              ISessionWapper sessionWapper)
        {
            _diTransient = transient;
            _diScoped    = scoped;
            _diSingleton = singleton;

            _sessionWapper = sessionWapper;
        }
コード例 #3
0
 public HomeController(IDiSample diSample)
 {
     _diSample = diSample;
 }