Exemple #1
0
 internal DropboxSource(Uri uri, IArchiveHandler handler, string fileName, int fileSize)
 {
     this.uri       = uri;
     this.handler   = handler;
     FileName       = fileName;
     SourceFileSize = fileSize;
 }
 public CoreDumpAnalyzer(IArchiveHandler archiveHandler, IFilesystem filesystem, IProcessHandler processHandler, IHttpRequestHandler requestHandler)
 {
     this.archiveHandler = archiveHandler ?? throw new ArgumentNullException("ArchiveHandler must not be null!");
     this.filesystem     = filesystem ?? throw new ArgumentNullException("Filesystem must not be null!");
     this.processHandler = processHandler ?? throw new ArgumentNullException("ProcessHandler must not be null!");
     this.requestHandler = requestHandler ?? throw new ArgumentNullException("RequestHandler must not be null!");
 }
Exemple #3
0
 internal MegaSource(IMegaApiClient client, Uri uri, INodeInfo node, IArchiveHandler handler)
 {
     this.client  = client;
     this.uri     = uri;
     this.node    = node;
     this.handler = handler;
 }
Exemple #4
0
 internal DiscordAttachmentSource(DiscordAttachment attachment, IArchiveHandler handler, string fileName, int fileSize)
 {
     this.attachment = attachment;
     this.handler    = handler;
     FileName        = fileName;
     SourceFileSize  = fileSize;
 }
 public PastebinSource(Uri uri, string filename, int filesize, IArchiveHandler handler)
 {
     this.uri       = uri;
     FileName       = filename;
     SourceFileSize = filesize;
     this.handler   = handler;
 }
Exemple #6
0
 internal MediafireSource(Uri?uri, IArchiveHandler handler, string fileName, int fileSize)
 {
     this.uri       = uri;
     this.handler   = handler;
     FileName       = fileName;
     SourceFileSize = fileSize;
 }
Exemple #7
0
 internal YaDiskSource(string uri, IArchiveHandler handler, string fileName, int fileSize)
 {
     this.uri       = new Uri(uri);
     this.handler   = handler;
     FileName       = fileName;
     SourceFileSize = fileSize;
 }
 internal GenericSource(Uri uri, IArchiveHandler handler, string host, string fileName, int fileSize)
 {
     this.uri       = uri;
     this.handler   = handler;
     Host           = host;
     FileName       = fileName;
     SourceFileSize = fileSize;
 }
Exemple #9
0
        public FileSource(string path, IArchiveHandler handler)
        {
            this.path    = path;
            this.handler = handler;
            var fileInfo = new FileInfo(path);

            SourceFileSize = fileInfo.Length;
            FileName       = fileInfo.Name;
        }
 public GoogleDriveSource(FilesResource.GetRequest fileInfoRequest, FileMeta fileMeta, IArchiveHandler handler)
 {
     this.fileInfoRequest = fileInfoRequest;
     this.fileMeta        = fileMeta;
     this.handler         = handler;
 }