//public static void Initialize(IServiceProvider serviceProvider) //{ //} public AuthController(UserManager <UserIdentity> userManager, TravelManagerContext context, IJwtFactory jwtFactory, IOptions <JwtIssuerOptions> jwtOptions) { _userManager = userManager; _context = context; _jwtFactory = jwtFactory; _jwtOptions = jwtOptions.Value; }
public ExchangeRateProvider(TravelManagerContext context, IConfiguration configuration, ILogger <ExchangeRateProvider> logger) { _context = context; _configuration = configuration; BaseEndpoint = new Uri(_configuration.GetValue <string>("ExchangeRatesAPIurl"), UriKind.Absolute); _httpClient = new HttpClient(); _logger = logger; _logger.LogInformation($"LOG: ExchangeRateProvider created"); _logger.LogInformation($"LOG: BaseEndpoint: {BaseEndpoint}"); }
public CurrenciesController(TravelManagerContext context) { _context = context; if (_context.Currencies.Count() == 0) { // Create a new Currency if collection is empty, _context.Currencies.Add(new Currency { Name = "USD", Description = "US dollar", Symbol = "$" }); _context.SaveChanges(); } }
public UserTestController(UserManager <UserIdentity> userManager, TravelManagerContext context) { _userManager = userManager; _context = context; }
public PlacesController(TravelManagerContext context) { _context = context; }
public RoleAsigneesController(TravelManagerContext context) { _context = context; }
public CurrencyConverter(TravelManagerContext context) { _context = context; }
public EmployeesController(TravelManagerContext context) { _context = context; }
public ExchangeRatesController(TravelManagerContext context) { _context = context; }
public DocumentsController(TravelManagerContext context) { _context = context; }
public UsersController(TravelManagerContext context) { _context = context; }