public BaseController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IEmailSender emailSender, ILogger <AccountController> logger, IDocumentManager documentManager, ApplicationDbContext context, IOptions <AmazonSettings> amazonSettings) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _logger = logger; _documentManager = documentManager; _context = context; _amazonSettings = amazonSettings.Value; }
protected RavenAwsClient(AmazonSettings amazonSettings, Progress progress, CancellationToken?cancellationToken = null) : base(progress, cancellationToken) { if (string.IsNullOrWhiteSpace(amazonSettings.AwsAccessKey)) { throw new ArgumentException("AWS access key cannot be null or empty"); } if (string.IsNullOrWhiteSpace(amazonSettings.AwsSecretKey)) { throw new ArgumentException("AWS secret key cannot be null or empty"); } _awsAccessKey = amazonSettings.AwsAccessKey; _awsSecretKey = Encoding.UTF8.GetBytes("AWS4" + amazonSettings.AwsSecretKey); _sessionToken = amazonSettings.AwsSessionToken; RemoteFolderName = amazonSettings.RemoteFolderName; }
public AmazonDocumentManager(ApplicationDbContext context, IOptions <AmazonSettings> settings) { _context = context; _settings = settings.Value; }
public Amazon() { Settings = new AmazonSettings(); Initalize(); NavigateTo(Url); }
public IndexModel(IOptions <AmazonSettings> amazonSettings) { _amazonSettings = amazonSettings.Value; }