public SaMiController(IConfiguration configuration, IHttpClientFactory clientFactory, UserManager <ApplicationUser> userManager, MySaMiDbContext context) { this.configuration = configuration; this.clientFactory = clientFactory; this.userManager = userManager; this.context = context; }
public SaMiKeysController ( MySaMiDbContext context, UserManager <ApplicationUser> userManager, IConfiguration configuration, IDataProtectionProvider protectionProvider, IHttpClientFactory clientFactory ) { this.context = context; this.userManager = userManager; this.configuration = configuration; this.protectionProvider = protectionProvider; this.clientFactory = clientFactory; purposes = new string[] { configuration.GetSection("DataProtection").GetSection("SaMiKey").GetSection("Purpose").Value, configuration.GetSection("DataProtection").GetSection("SaMiKey").GetSection("Version").Value }; }