public DocumentManager(Guid userId, IStorageClient storageClient, IDocumentExecutor documentExecutor) { if (storageClient == null) throw new ArgumentNullException("storageClient"); if (documentExecutor == null) throw new ArgumentNullException("documentExecutor"); UserId = userId; StorageClient = storageClient; DocumentExecutor = documentExecutor; }
public AzureScanWorker(IStorageClient storage, IDocumentExecutor documentExecutor, CloudStorageAccount account) { this.storage = storage; this.documentExecutor = documentExecutor; queue = new SingleDeliveryQueueClient(account, "documents"); }