示例#1
0
 public FileHandler()
 {
     if (cbGeneric_4 == null)
     {
         cbGeneric_4 = new CbGeneric <TransferingProject>(FileHandler.smethod_0);
     }
     this.FileTransStarted += cbGeneric_4;
     if (cbGeneric_5 == null)
     {
         cbGeneric_5 = new CbGeneric <TransferingProject>(FileHandler.smethod_1);
     }
     this.FileResumedTransStarted += cbGeneric_5;
     if (cbFileSendedProgress_1 == null)
     {
         cbFileSendedProgress_1 = new CbFileSendedProgress(FileHandler.smethod_2);
     }
     this.FileTransProgress += cbFileSendedProgress_1;
     if (cbGeneric_6 == null)
     {
         cbGeneric_6 = new CbGeneric <TransferingProject, FileTransDisrupttedType>(FileHandler.smethod_3);
     }
     this.FileTransDisruptted += cbGeneric_6;
     if (cbGeneric_7 == null)
     {
         cbGeneric_7 = new CbGeneric <TransferingProject>(FileHandler.smethod_4);
     }
     this.FileTransCompleted += cbGeneric_7;
 }
示例#2
0
 public Class124(IAgileLogger iagileLogger_0, string string_1, Stream stream_1, ulong ulong_2)
 {
     this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0;
     this.string_0           = string_1;
     this.stream_0           = stream_1;
     this.ulong_1            = ulong_2;
     if (cbGeneric_1 == null)
     {
         cbGeneric_1 = new CbGeneric <string>(Class124.smethod_0);
     }
     this.FileTransCompleted += cbGeneric_1;
     if (cbFileTransDisruptted_1 == null)
     {
         cbFileTransDisruptted_1 = new CbFileTransDisruptted(Class124.smethod_1);
     }
     this.FileTransDisruptted += cbFileTransDisruptted_1;
     if (cbFileSendedProgress_1 == null)
     {
         cbFileSendedProgress_1 = new CbFileSendedProgress(Class124.smethod_2);
     }
     this.FileTransProgress += cbFileSendedProgress_1;
     if (ulong_2 == 0L)
     {
         this.stream_0.Flush();
         this.stream_0.Close();
         new CbGeneric(this.method_0).BeginInvoke(null, null);
     }
 }
示例#3
0
    public DirectorySender(IAgileLogger iagileLogger_0, IFilePackageHelper interface35_1, string string_4, string string_5, string string_6, ulong ulong_4, ulong ulong_5)
    {
        this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0;
        this.interface35_0      = interface35_1;
        DirectoryInfo info = new DirectoryInfo(string_4 + @"\");

        this.string_0 = info.FullName;
        this.string_1 = string_5;
        this.string_2 = string_6;
        this.ulong_1  = ulong_4 - ulong_5;
        this.ulong_3  = ulong_5;
        this.ulong_0  = FileHelper.GetDirectorySize(this.string_0);
        if (cbFileTransCompleted_1 == null)
        {
            cbFileTransCompleted_1 = new CbFileTransCompleted(DirectorySender.smethod_0);
        }
        this.FileTransCompleted += cbFileTransCompleted_1;
        if (cbFileTransDisruptted_1 == null)
        {
            cbFileTransDisruptted_1 = new CbFileTransDisruptted(DirectorySender.smethod_1);
        }
        this.FileTransDisruptted += cbFileTransDisruptted_1;
        if (cbFileSendedProgress_1 == null)
        {
            cbFileSendedProgress_1 = new CbFileSendedProgress(DirectorySender.smethod_2);
        }
        this.FileTransProgress += cbFileSendedProgress_1;
    }
示例#4
0
 public FileReceiver(IAgileLogger iagileLogger_0, string string_3, string string_4, ulong ulong_2, string string_5)
 {
     this.diYatLwGC          = new EventSafeTrigger(new EmptyAgileLogger(), "XrZokLIgmVlcsHl3C7.nxZXDMlUfKsyJYxeVn");
     this.emptyAgileLogger_0 = new EmptyAgileLogger();
     this.ulong_0            = 0L;
     this.HtwoUmmJj          = "";
     this.object_0           = 0;
     this.int_0              = 0;
     this.byte_0             = 0;
     this.filePackage_0      = new FilePackage[0x100];
     this.int_1              = 0;
     this.bool_0             = false;
     this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0;
     this.HtwoUmmJj          = string_3;
     if (File.Exists(string_4))
     {
         File.Delete(string_4);
     }
     this.string_0 = string_4;
     this.string_1 = string_4 + string_5;
     while (File.Exists(this.string_1))
     {
         this.string_1 = this.string_1 + string_5;
     }
     this.string_2     = FileHelper.GetFileNameNoPath(string_4);
     this.fileStream_0 = new FileStream(this.string_1, FileMode.OpenOrCreate);
     this.ulong_1      = ulong_2;
     if (cbGeneric_1 == null)
     {
         cbGeneric_1 = new CbGeneric <string>(FileReceiver.smethod_0);
     }
     this.FileTransCompleted += cbGeneric_1;
     if (cbFileTransDisruptted_1 == null)
     {
         cbFileTransDisruptted_1 = new CbFileTransDisruptted(FileReceiver.smethod_1);
     }
     this.FileTransDisruptted += cbFileTransDisruptted_1;
     if (cbFileSendedProgress_1 == null)
     {
         cbFileSendedProgress_1 = new CbFileSendedProgress(FileReceiver.nAuyhuNgq);
     }
     this.FileTransProgress += cbFileSendedProgress_1;
     if (ulong_2 == 0L)
     {
         this.fileStream_0.Flush();
         this.fileStream_0.Close();
         if (!File.Exists(this.string_0))
         {
             File.Move(this.string_1, this.string_0);
         }
         new CbGeneric(this.method_0).BeginInvoke(null, null);
     }
 }
示例#5
0
    public DirectoryReceiver(IAgileLogger iagileLogger_0, string string_5, string string_6, ResumedProjectItem resumedProjectItem_0)
    {
        this.eventSafeTrigger_0 = new EventSafeTrigger(new EmptyAgileLogger(), "XrZokLIgmVlcsHl3C7.nxZXDMlUfKsyJYxeVn");
        this.emptyAgileLogger_0 = new EmptyAgileLogger();
        this.ulong_0            = 0L;
        this.ulong_1            = 0L;
        this.ulong_2            = 0L;
        this.string_3           = "";
        this.ulong_4            = 0L;
        this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0;
        this.string_3           = string_5;
        this.string_0           = resumedProjectItem_0.LocalSavePath;
        this.string_4           = string_6;
        string[] strArray = this.string_0.Trim().Split(new char[] { '\\' });
        this.object_0 = strArray[strArray.Length - 2];
        this.ulong_3  = resumedProjectItem_0.OriginSize;
        this.ulong_0  = resumedProjectItem_0.ReceivedCount;
        if (cbGeneric_3 == null)
        {
            cbGeneric_3 = new CbGeneric <string>(DirectoryReceiver.smethod_3);
        }
        this.FileTransCompleted += cbGeneric_3;
        if (cbFileTransDisruptted_2 == null)
        {
            cbFileTransDisruptted_2 = new CbFileTransDisruptted(DirectoryReceiver.smethod_4);
        }
        this.FileTransDisruptted += cbFileTransDisruptted_2;
        if (cbFileSendedProgress_2 == null)
        {
            cbFileSendedProgress_2 = new CbFileSendedProgress(DirectoryReceiver.smethod_5);
        }
        this.FileTransProgress += cbFileSendedProgress_2;
        this.ulong_4            = resumedProjectItem_0.ReceivedCount - resumedProjectItem_0.DisrupttedFileReceivedCount;
        string str = this.string_0 + resumedProjectItem_0.DisrupttedFileRelativePath;

        this.enisnmwGbe = new FileReceiver(this.emptyAgileLogger_0, this.string_3, resumedProjectItem_0.LocalTempFileSavePath, str, resumedProjectItem_0.DisrupttedFileSize, resumedProjectItem_0.DisrupttedFileReceivedCount);
        this.enisnmwGbe.FileTransDisruptted += new CbFileTransDisruptted(this.method_5);
        this.enisnmwGbe.FileTransCompleted  += new CbGeneric <string>(this.OnFileTransCompleted);
        this.enisnmwGbe.FileTransProgress   += new CbFileSendedProgress(this.method_3);
    }
示例#6
0
 public FileSender(IAgileLogger iagileLogger_0, IFilePackageHelper interface35_1, string string_4, string string_5, ulong ulong_4)
 {
     this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0;
     this.interface35_0      = interface35_1;
     this.string_0           = string_4;
     this.string_1           = string_5;
     this.ulong_0            = ulong_4;
     if (cbFileTransCompleted_1 == null)
     {
         cbFileTransCompleted_1 = new CbFileTransCompleted(FileSender.smethod_0);
     }
     this.FileTransCompleted += cbFileTransCompleted_1;
     if (cbFileTransDisruptted_1 == null)
     {
         cbFileTransDisruptted_1 = new CbFileTransDisruptted(FileSender.smethod_1);
     }
     this.FileTransDisruptted += cbFileTransDisruptted_1;
     if (cbFileSendedProgress_1 == null)
     {
         cbFileSendedProgress_1 = new CbFileSendedProgress(FileSender.smethod_2);
     }
     this.FileTransProgress += cbFileSendedProgress_1;
 }
示例#7
0
 public FileReceiver(IAgileLogger iagileLogger_0, string string_3, ResumedProjectItem resumedProjectItem_0)
 {
     this.diYatLwGC          = new EventSafeTrigger(new EmptyAgileLogger(), "XrZokLIgmVlcsHl3C7.nxZXDMlUfKsyJYxeVn");
     this.emptyAgileLogger_0 = new EmptyAgileLogger();
     this.ulong_0            = 0L;
     this.HtwoUmmJj          = "";
     this.object_0           = 0;
     this.int_0              = 0;
     this.byte_0             = 0;
     this.filePackage_0      = new FilePackage[0x100];
     this.int_1              = 0;
     this.bool_0             = false;
     this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0;
     this.HtwoUmmJj          = string_3;
     this.string_1           = resumedProjectItem_0.LocalTempFileSavePath;
     this.string_0           = resumedProjectItem_0.LocalSavePath;
     this.string_2           = FileHelper.GetFileNameNoPath(resumedProjectItem_0.LocalSavePath);
     this.fileStream_0       = new FileStream(this.string_1, FileMode.Open);
     this.fileStream_0.Seek((long)resumedProjectItem_0.ReceivedCount, SeekOrigin.Begin);
     this.ulong_1 = resumedProjectItem_0.OriginSize;
     this.ulong_0 = resumedProjectItem_0.ReceivedCount;
     if (cbGeneric_2 == null)
     {
         cbGeneric_2 = new CbGeneric <string>(FileReceiver.smethod_2);
     }
     this.FileTransCompleted += cbGeneric_2;
     if (cbFileTransDisruptted_2 == null)
     {
         cbFileTransDisruptted_2 = new CbFileTransDisruptted(FileReceiver.smethod_3);
     }
     this.FileTransDisruptted += cbFileTransDisruptted_2;
     if (cbFileSendedProgress_2 == null)
     {
         cbFileSendedProgress_2 = new CbFileSendedProgress(FileReceiver.smethod_4);
     }
     this.FileTransProgress += cbFileSendedProgress_2;
 }
示例#8
0
 public FileReceiver(IAgileLogger iagileLogger_0, string string_3, string string_4, string string_5, ulong ulong_2, ulong ulong_3)
 {
     this.diYatLwGC          = new EventSafeTrigger(new EmptyAgileLogger(), "XrZokLIgmVlcsHl3C7.nxZXDMlUfKsyJYxeVn");
     this.emptyAgileLogger_0 = new EmptyAgileLogger();
     this.ulong_0            = 0L;
     this.HtwoUmmJj          = "";
     this.object_0           = 0;
     this.int_0              = 0;
     this.byte_0             = 0;
     this.filePackage_0      = new FilePackage[0x100];
     this.int_1              = 0;
     this.bool_0             = false;
     this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0;
     this.HtwoUmmJj          = string_3;
     this.string_1           = string_4;
     this.string_0           = string_5;
     this.string_2           = FileHelper.GetFileNameNoPath(string_5);
     this.fileStream_0       = new FileStream(this.string_1, FileMode.Open);
     this.fileStream_0.Seek((long)ulong_3, SeekOrigin.Begin);
     this.ulong_1 = ulong_2;
     this.ulong_0 = ulong_3;
     if (cbGeneric_3 == null)
     {
         cbGeneric_3 = new CbGeneric <string>(FileReceiver.smethod_5);
     }
     this.FileTransCompleted += cbGeneric_3;
     if (cbFileTransDisruptted_3 == null)
     {
         cbFileTransDisruptted_3 = new CbFileTransDisruptted(FileReceiver.smethod_6);
     }
     this.FileTransDisruptted += cbFileTransDisruptted_3;
     if (cbFileSendedProgress_3 == null)
     {
         cbFileSendedProgress_3 = new CbFileSendedProgress(FileReceiver.smethod_7);
     }
     this.FileTransProgress += cbFileSendedProgress_3;
 }
示例#9
0
 public DirectoryReceiver(IAgileLogger iagileLogger_0, string string_5, string string_6, ulong ulong_5, string string_7)
 {
     this.eventSafeTrigger_0 = new EventSafeTrigger(new EmptyAgileLogger(), "XrZokLIgmVlcsHl3C7.nxZXDMlUfKsyJYxeVn");
     this.emptyAgileLogger_0 = new EmptyAgileLogger();
     this.ulong_0            = 0L;
     this.ulong_1            = 0L;
     this.ulong_2            = 0L;
     this.string_3           = "";
     this.ulong_4            = 0L;
     this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0;
     this.string_3           = string_5;
     if (!string_6.EndsWith(@"\"))
     {
         string_6 = string_6 + @"\";
     }
     this.string_0 = string_6;
     this.string_4 = string_7;
     string[] strArray = this.string_0.Trim().Split(new char[] { '\\' });
     this.object_0 = strArray[strArray.Length - 2];
     this.ulong_3  = ulong_5;
     if (cbGeneric_2 == null)
     {
         cbGeneric_2 = new CbGeneric <string>(DirectoryReceiver.smethod_0);
     }
     this.FileTransCompleted += cbGeneric_2;
     if (cbFileTransDisruptted_1 == null)
     {
         cbFileTransDisruptted_1 = new CbFileTransDisruptted(DirectoryReceiver.smethod_1);
     }
     this.FileTransDisruptted += cbFileTransDisruptted_1;
     if (cbFileSendedProgress_1 == null)
     {
         cbFileSendedProgress_1 = new CbFileSendedProgress(DirectoryReceiver.smethod_2);
     }
     this.FileTransProgress += cbFileSendedProgress_1;
 }