public LeakyAzureBlobStorageTest() { ITestSettings settings = Settings.Instance; _storage = StorageFactory.Blobs.AzureBlobStorage(settings.AzureStorageName, settings.AzureStorageKey); _native = (IAzureBlobStorage)_storage; }
public CreateModel(IItemService itemService, IAzureBlobStorage azureService, UserManager <IdentityUser> user, ICategoryService categoryService) { this.itemService = itemService; this.azureService = azureService; _userManager = user; this.categoryService = categoryService; }
public CandidateController(IAzureBlobStorage storage, ICandidateRepository candidateRepository, ILoggerFactory loggerFactory, IConfiguration configuration) { _storage = storage; _logger = loggerFactory.CreateLogger(nameof(CandidateController)); _candidateRepository = candidateRepository; _configuration = configuration; }
public PhotoController(IConfiguration configuration, IAzureBlobStorage blobStorage, IAzureStorageQueue queue) { this.blobStorage = blobStorage; this.queue = queue; jobRepository = new DocumentDBRepositoryBase <Job>(); jobRepository.Initialize(configuration["AzureCosmosDb:Endpoint"], configuration["AzureCosmosDb:Key"], configuration["AzureCosmosDb:DatabaseId"]); }
public async Task <ActionResult> Show(string id, IAzureBlobStorage storage) { var model = new ShowModel { Uri = await storage.UriFor(id) }; //return View(model); return(PartialView("_Image")); }
public void Initialize() { _sut = new AzureBlobStorage( settings: new AzureBlobSetings( storageAccount: "fiiadmision", storageKey: "LkSxXYlV+gFnzEtBDNNZx4VroRV8j8nbc5RfA5gnYZX17T+lmfGeT+HRkTqp8HSGjvWdz08zeDw36qrEqoEmQw==", containerName: "images") ); }
public LeakyAzureBlobStorageTest() { ITestSettings settings = Settings.Instance; IBlobStorage storage = StorageFactory.Blobs.AzureBlobStorageWithSharedKey( settings.AzureStorageName, settings.AzureStorageKey); _native = (IAzureBlobStorage)storage; }
public EventsController(IEventRepository eventRepo, ISearchHelper searchHelper, IGameHelper gameHelper, ILogHelper logHelper, IAzureBlobStorage blobStorage) { _eventRepo = eventRepo; _searchHelper = searchHelper; _gameHelper = gameHelper; _logHelper = logHelper; _blobStorage = blobStorage; }
public PaymentEventsDocumentService( IAzureBlobStorage azureBlobStorage, IPaymentEventMapper mapper, ILog logger) { _azureBlobStorage = azureBlobStorage; _mapper = mapper; _logger = logger; // todo: don't want to leak key - need a method to produce a safe-to-log value from the connection string //_logger.Info($"{nameof(PaymentEventsDocumentService)} is using {_azureBlobStorage.StorageConnectionString}"); }
public async Task <ActionResult> Upload(IFormFile image, IAzureBlobStorage storage) { if (image != null) { string id = Guid.NewGuid().ToString(); await storage.UploadAsync(id, image.FileName); return(RedirectToAction("Show", new { id = id })); } return(PartialView("_Image")); }
/// <summary> /// Initializes a new instance of the <see cref="ScreenCaptureProvider"/> class. /// </summary> /// <param name="tempFolder">The temporary folder.</param> /// <param name="urlHelper">The URL helper.</param> /// <param name="embeddedResourceHelper"></param> /// <param name="azureBlobStorage">The azure BLOB storage.</param> /// <exception cref="System.IO.DirectoryNotFoundException"></exception> public ScreenCaptureProvider(string tempFolder, IUrlHelper urlHelper, IEmbeddedResourceHelper embeddedResourceHelper, IAzureBlobStorage azureBlobStorage) { _urlHelper = urlHelper; _embeddedResourceHelper = embeddedResourceHelper; _azureBlobStorage = azureBlobStorage; ScreenCaptureJob = new ScreenCaptureJob(); if (tempFolder == null || !Directory.Exists(tempFolder)) { throw new DirectoryNotFoundException(string.Format("Directory {0} not found", tempFolder)); } OutputScreenCaptureFile = string.Format("{0}\\ScreenCapture.wmv", tempFolder); ScreenCaptureJob.OutputScreenCaptureFileName = OutputScreenCaptureFile; }
public AccountController(IUserRepository userRepo, IEventRepository eventRepo, ICommentRepository commentRepo, IFriendOperationRepository friendOperationRepo, IEventOperationRepository eventOperationRepo, ILogHelper logHelper, IJwtFactory jwtFactory, IAzureBlobStorage blobStorage) { _userRepo = userRepo; _eventRepo = eventRepo; _commentRepo = commentRepo; _friendOperationRepo = friendOperationRepo; _eventOperationRepo = eventOperationRepo; _logHelper = logHelper; _jwtFactory = jwtFactory; _blobStorage = blobStorage; }
public static async void Run([QueueTrigger("toprocess", Connection = "AzureWebJobsStorage")] string myQueueItem, [Inject] IAzureBlobStorage storage, TraceWriter log) { try { //verificar se é extensão ou pós. Frente ou verso. var docData = JsonConvert.DeserializeObject <Document>(myQueueItem); await storage.CreateFromTemplate("templates/TemplatePosFrente.docx", docData.DocumentFront); log.Info($"document {docData.DocumentFront} created"); await storage.CreateFromTemplate("templates/TemplatePosFrente.docx", docData.DocumentFront); log.Info($"document {docData.DocumentFront} created"); } catch (Exception ex) { log.Info($"Ocorreu um erro ao processar criar o novo arquivo \n{ex}"); } }
public EditModel(IItemService itemService, ICategoryService categoryService, IAzureBlobStorage azureService) { this.itemService = itemService; this.categoryService = categoryService; this.azureService = azureService; }
public BlobProcessor(ILogger <BlobProcessor> logger, IAzureBlobStorage blobStorage) { _logger = logger; _blobStorage = blobStorage; }
public DocProcessService(StorageAccountSettings settings, IDocumentService documentService, TraceWriter log) { this.documentService = documentService; this.azureBlobStorage = new AzureBlobStorage(settings); this.log = log; }
public ImageStore(IAzureBlobStorage azureBlobStorage, IConfiguration configuration) { _blobStorage = azureBlobStorage; _configuration = configuration; _baseUri = _configuration["Blob_BaseUri"]; }
public ImageStorageService(IConfiguration config, IAzureBlobStorage iAzureBlobStorage, ILogger <ImageStorageService> logger) { _config = config; _iAzureBlobStorage = iAzureBlobStorage; _logger = logger; }
public ImageStorage(IAzureBlobStorage azureBlobStorage, INotificationHandler <DomainNotification> notifications, ImageLinkCache linkCache) { _azureBlobStorage = azureBlobStorage; _notifications = notifications; _linkCache = linkCache; }
public BlobStorageModel(IAzureBlobStorage blobStorage) { BlobStorage = blobStorage; }
public void Cleanup() { _sut = null; }
public AssessmentOrgsDocumentService(IAzureBlobStorage azureBlobStorage) { _azureBlobStorage = azureBlobStorage; }
public HomeController(IAzureBlobStorage blobStorage) { this.blobStorage = blobStorage; }
public UploadController(IConfiguration config, IAzureBlobStorage blobStorage) { _config = config; _blobStorage = blobStorage; }