Пример #1
0
 public void imethod_5(string string_1, FileTransDisrupttedType fileTransDisrupttedType_0, string string_2)
 {
     if (this.iobjectManager_2.Contains(string_1))
     {
         TransferingProject project = this.iobjectManager_2.Get(string_1);
         project.method_2(string_2);
         this.iobjectManager_2.Remove(string_1);
         this.FileTransDisruptted(project, fileTransDisrupttedType_0);
     }
     else
     {
         IFileTransHelper interface2 = this.iobjectManager_0.Get(string_1);
         if (interface2 == null)
         {
             if (this.iobjectManager_1.Contains(string_1))
             {
                 this.iobjectManager_1.Remove(string_1);
             }
         }
         else
         {
             interface2.imethod_1(fileTransDisrupttedType_0, false, string_2);
         }
     }
 }
Пример #2
0
    private void method_10(string string_1, FileTransDisrupttedType fileTransDisrupttedType_0, string string_2)
    {
        TransferingProject project = this.imethod_2(string_1);

        if (project != null)
        {
            project.method_2(string_2);
            this.safeDictionary_1.Remove(string_1);
            this.safeDictionary_0.Remove(string_1);
            this.FileTransDisruptted(project, fileTransDisrupttedType_0);
        }
    }
Пример #3
0
    public void RejectFile(string projectID, string cause)
    {
        TransferingProject project = this.object_0.imethod_3(projectID);

        if (project != null)
        {
            project.method_2(cause);
            this.object_0.imethod_2(projectID);
            IMessageHandler interface2 = this.interface9_0.imethod_4 <RejectOrAcceptFileContract>(this.string_0, this.fileMessageTypeRoom_0.RejectOrAcceptFile, new RejectOrAcceptFileContract(projectID, false, 0L, cause), project.SenderID);
            this.SendMessage(interface2, false);
        }
    }
Пример #4
0
    public void imethod_7(string string_1, FileTransDisrupttedType fileTransDisrupttedType_0, string string_2)
    {
        IFileOutter interface2 = this.safeDictionary_1.Get(string_1);

        if (interface2 != null)
        {
            interface2.imethod_0(fileTransDisrupttedType_0, string_2);
        }
        else
        {
            TransferingProject project = this.safeDictionary_0.Get(string_1);
            if (project != null)
            {
                this.safeDictionary_0.Remove(string_1);
                project.method_2(string_2);
                this.FileTransDisruptted(project, fileTransDisrupttedType_0);
            }
        }
    }
Пример #5
0
    private void method_3(string string_1, FileTransDisrupttedType fileTransDisrupttedType_0, string string_2)
    {
        TransferingProject project = this.GetTransferingProject(string_1);

        project.method_2(string_2);
        IFileTransHelper   interface2 = this.iobjectManager_0.Get(string_1);
        ResumedProjectItem item       = null;

        if (interface2.imethod_4())
        {
            DirectoryReceiver class2 = (DirectoryReceiver)interface2;
            item = new ResumedProjectItem(project.SenderID, project.OriginPath, project.TotalSize, project.OriginLastUpdateTime, interface2.imethod_8(), interface2.imethod_7(), interface2.imethod_9(), class2.method_0(), class2.method_1(), class2.method_2());
        }
        else
        {
            item = new ResumedProjectItem(project.SenderID, project.OriginPath, project.TotalSize, project.OriginLastUpdateTime, interface2.imethod_8(), interface2.imethod_7(), interface2.imethod_9());
        }
        this.class93_0.UpdateResumedProjectItem(item);
        this.iobjectManager_1.Remove(string_1);
        this.iobjectManager_0.Remove(string_1);
        this.FileTransDisruptted(project, fileTransDisrupttedType_0);
    }