// injection de IAuthRepository et AutoMapper et IConfiguration //services.AddScoped et services. AddAutoMapper public AuthController(IAuthRepository rep, IConfiguration config, IMapper mapper, IDattingRepository repo) { _mapper = mapper; _rep = rep; _config = config; _repo = repo; }
public PhotoController(IDattingRepository repository, IMapper mapper, IOptions <CloudinarySetting> cloudinaryConfig) { _cloudinaryConfig = cloudinaryConfig; _mapper = mapper; _repository = repository; Account acc = new Account( _cloudinaryConfig.Value.CloudName, _cloudinaryConfig.Value.ApiKey, _cloudinaryConfig.Value.ApiSecret ); _cloudnary = new Cloudinary(acc); }
public PhotoController(IDattingRepository repo, IMapper mapper , IOptions <CloudinarySettings> cloudinaryConfig) { _cloudinaryConfig = cloudinaryConfig; _mapper = mapper; _repo = repo; // on renseigne les données de CloudinarySettings de appsettings.json Account acc = new Account( _cloudinaryConfig.Value.CloudName, _cloudinaryConfig.Value.ApiKey, _cloudinaryConfig.Value.ApiSecret ); _cloudinary = new Cloudinary(acc); }
public PhotosController(IDattingRepository repo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig, IHubContext <ProfilePicHub> profilePicHub) { _profilePicHub = profilePicHub; _mapper = mapper; _repo = repo; _cloudinaryConfig = cloudinaryConfig; // _cloudinaryConfig.Value.CloudName comes form configuration file Account acc = new Account( _cloudinaryConfig.Value.CloudName, _cloudinaryConfig.Value.ApiKey, _cloudinaryConfig.Value.ApiSecret ); _cloudinary = new Cloudinary(acc); }
public UsersController(IDattingRepository repo, IMapper mapper) { _mapper = mapper; _repo = repo; }
public LodeController(IDattingRepository repository) { _repository = repository; }
public UsersController(IDattingRepository _repo, IMapper _mapper) { this._mapper = _mapper; this._repo = _repo; }
public UserController(IDattingRepository repository, IMapper mapper) { _repository = repository; _mapper = mapper; }
public MessageController(IDattingRepository repository, IMapper mapper) { _mapper = mapper; _repository = repository; }
public MessagesController(IDattingRepository repo, IMapper mapper) { _repo = repo; _mapper = mapper; }