public UserService(IOptions <AppSettings> appSettings) { _appSettings = appSettings.Value; }
public UserService(IOptions <AppSettings> appSettings, IUserRepository userRepository) { _appSettings = appSettings.Value; this.userRepository = userRepository; }
public UserService(Microsoft.Extensions.Options.IOptions <AppSettings> appSettings) { _appSettings = appSettings.Value; }
public ApplicationService(DataContext context, IOptions <AppSettings> appSettings) { _context = context; _appSettings = appSettings.Value; }
public UserService(IOptions <AppSettings> appSettings, IUserRepository userRepository, IMapper mapper) { _appSettings = appSettings.Value; _userRepository = userRepository; _mapper = mapper; }