/// <summary> /// COnstructor /// </summary> /// <param name="mailservices"></param> /// <param name="config"></param> /// <param name="context"></param> public AppController(IMailServices mailservices, IConfigurationRoot config, IWorldRepository repository, ILogger <AppController> logger) { _mailservices = mailservices; _config = config; _repository = repository; _logger = logger; }
public SignUpService() { _database = new Models.Database.Database(); _mailService = new MailService(); _account = new Account(); _rand = new Random(); }
public HomeController(IConfiguration configuration, ILogger <HomeController> logger, Cloudinary cloudinary, ApplicationDbContext dbContext, IMailServices mailServices) { this.cloudinary = cloudinary; this.dbContext = dbContext; this.mailServices = mailServices; this.configuration = configuration; _logger = logger; }
public PointsOfInterestController( ILogger <PointsOfInterestController> logger, IMailServices mailService, ICityInfoRepository cityInfoRepository) { _logger = logger; _mailService = mailService; // Injects into the constructor. _cityInfoRepository = cityInfoRepository; }
public BarController(IBarServices barServices, ICocktailServices cocktailServices, IBarCocktailServices barCocktailServices, IApiServices apiServices, IFormattingService formattingService, IMailServices mailServices) { _barServices = barServices; _cocktailServices = cocktailServices; _barCocktailServices = barCocktailServices; _apiServices = apiServices; _formattingService = formattingService; _mailServices = mailServices; }
public AccountServicesManager(UserManager <ApplicationUser> userManager, ApplicationDBContext context, IMailServices mailServices, IConfiguration configuration) { this.userManager = userManager; this.context = context; _mailServices = mailServices; _configuration = configuration; }
public ForecastController(IForecastService forecastService, IAuthorizationService authorizationService, IMailServices mailService, IUserService userService) { _forecastService = forecastService; _authorizationService = authorizationService; _mailService = mailService; _userService = userService; }
public PointsOfInterestController( ILogger <PointsOfInterestController> logger, IMailServices mailService, ICityService cityService, IPointOfInterestService pointOfInterestservice) { _logger = logger; _mailService = mailService; _pointOfInterestservice = pointOfInterestservice; _cityService = cityService; }
public AccountController( //IConfiguration configuration, //ISEApiService seApiService, IUserService userService, IAuthorizationService authorizationService, IMailServices mailService ) { //_seApiService = seApiService; //_configuration = configuration; _userService = userService; _authorizationService = authorizationService; _mailService = mailService; }
public InvitationController(IUserTrackingRepository userTrackingRepository, IInvitationRepository invitationRepository, IMapper mapper, IMailServices mailServices, ILogger <InvitationController> logger, UserManager <ApplicationUser> userManager) { _invitationRepository = invitationRepository; _mapper = mapper; _mailServices = mailServices; _logger = logger; _userManager = userManager; _userTrackingRepository = userTrackingRepository; }
public AppController(IMailServices mailService, IConfigurationRoot config, IWorldRepository repository, ILogger <AppController> logger) //world context can now be added in the constructor as is injectable (after adding it into services) { //when we inject the worldrepository into the constructor we are allowing the dependency injection layer to determine everything we need. //we need the interface for world repository that knows that we need the class worldrepository. for this to be created needs a //world context class and this one needs a Iconfigurationroot and dbcontextoptions(injected in worldcontext class _mailService = mailService; //is going to take the implementation that works, this way when the controller gets a request //it will look first at this constructor and implement the interface to use this service //this also has to be registered i n Startup.cs as a service! _config = config; _repository = repository; _logger = logger; //this will allow us to trap errors (try and catch if something happens with my queries and use the logger to log what kind of message we get) }
public EventController( IBarServices barServices, IApiServices apiServices, ICocktailServices cocktailServices, IBarCocktailServices barCocktailServices, IMailServices mailServices, IFormattingService formattingService) { this.barServices = barServices; this.apiServices = apiServices; this.cocktailServices = cocktailServices; this.barCocktailServices = barCocktailServices; this.mailServices = mailServices; this.formattingService = formattingService; }
public UserAppService(IUserRepository repository_usr, IComSystemRepository repository_comSystem, IMailServices mailServices) { _repository_user = repository_usr; _repository_comSystem = repository_comSystem; _mailServices = mailServices; }
public MailController(IMailServices mailServices) { _mailServices = mailServices; }
public HomeController(IMailServices mailService, IRepository repository) { _mailService = mailService; this.repository = repository; }
public AppController(IMailServices mailService, IConfigurationRoot config, IWorldRepository repository) { _mailService = mailService; _config = config; _repository = repository; }
public AppController(IMailServices mailServices, IDutchRepository repository) { _mailServices = mailServices; _repository = repository; }
public ClassPointuofIntrestController(ILogger <ClassPointuofIntrestController> logger, IMailServices localMailService, CityInfoContext cityInfoContext) { _logger = logger; _localmailservice = localMailService; _cityInfoContext = cityInfoContext; }
public LanguagesController(ILogger <LanguagesController> logger, IMailServices mailServices, ICountryInfoRepository countryInfoRepository) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _mailServices = mailServices ?? throw new ArgumentNullException(nameof(mailServices)); _countryInfoRepository = countryInfoRepository ?? throw new ArgumentNullException(nameof(countryInfoRepository)); }
public PointsOfInterestController(ILogger <PointsOfInterestController> _logger, IMailServices _mail, ICityRepository _cityRepository) { logger = _logger; mail = _mail; cityRepository = _cityRepository; }
public AppController(IMailServices service, IWorldRepository repository) { _mailService = service; _repository = repository; }
public PointsOfInterestController(ILogger <PointsOfInterestController> logger, IMailServices mailService) { _logger = logger; _mailService = mailService; }
public MailListViewModel(IMailServices mailServices, IDialogService dialogService) { _mailServices = mailServices; _dialogService = dialogService; }
public AppController(IMailServices mailservice, IConfigurationRoot config) { _mailservice = mailservice; _config = config; }
public AppController(IMailServices mailService) { _mailService = mailService; }
// private readonly DutchContext context; public AppController(IMailServices _mailService, IDutchRepository repository) { mailService = _mailService; this.repository = repository; }