Exemple #1
0
 public MyApplicationController(
     IMyApplicationService myApplicationService,
     ICvStorageService cvStorageService,
     IMapper mapper,
     IStringLocalizer <MyApplicationController> stringLocalizer,
     UserManager <ApplicationUser> userManager,
     ApplicationDbContext context)
 {
     _myApplicationService = myApplicationService;
     _cvStorageService     = cvStorageService;
     _mapper          = mapper;
     _stringLocalizer = stringLocalizer;
     _userManager     = userManager;
     _context         = context;
 }
Exemple #2
0
 //constructor - resolve dependencies here
 public MyWinService()
 {
     _myApplicationService = new MyApplicationService();
 }