示例#1
0
        public AppController(INullMailService mailService, DutchContext ctx, IDutchRepository repository)
        {
            _mailService = mailService;
            _repository  = repository;

            _ctx = ctx;
        }
 // what we're saying here is that the requirement for AppController
 // is that we need a mail service because at least one of our methods
 // requires sending mail. We're asking the dependency injection layer
 // to figure out how to construct one of these.
 public AppController(INullMailService mailService, IDutchRepository repository)
 {
     _mailService = mailService;
     _repository  = repository;
 }
示例#3
0
 public AppController(INullMailService mailService)
 {
     _mailService = mailService;
 }
示例#4
0
 public AppController(INullMailService mailService, ISampleAppRepository repository)
 {
     this._mailService = mailService;
     this._repository  = repository;
 }
示例#5
0
 public AppController(INullMailService nullMailService, IDutchRepository repository)
 {
     this._nullMailService = nullMailService;
     this._repository      = repository;
 }
示例#6
0
 public AppController(INullMailService mailService, IappBaseRepository repository)
 {
     this.mailService = mailService;
     this.repository  = repository;
 }