コード例 #1
0
 public TestDILifeTimeService(IScopedCounter scopedCounter,
                              ITransientCounter transientCounter,
                              ISingletonCounter singletonCounter)
 {
     this.ScopedCounter    = scopedCounter;
     this.TransientCounter = transientCounter;
     this.SingletonCounter = singletonCounter;
 }
コード例 #2
0
 public ValuesController(IPuzzles puzzles,
                         TestDILifeTimeService testDILifeTimeService,
                         IScopedCounter scopedCounter,
                         ITransientCounter transientCounter,
                         ISingletonCounter singletonCounter)
 {
     this.puzzles = puzzles;
     this.testDILifeTimeService = testDILifeTimeService;
     this.scopedCounter         = scopedCounter;
     this.transientCounter      = transientCounter;
     this.singletonCounter      = singletonCounter;
 }
コード例 #3
0
 public SingletonCounterBase(ISingletonCounter singletonCounter)
 {
     _singletonCounter = singletonCounter;
 }