kythyria / msnp-sharp

Automatically exported from code.google.com/p/msnp-sharp
0 stars 0 forks source link

Cannot Abort the transfer on hand (transferring in progress) #224

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Public EE As MSNSLPInvitationEventArgs

after setting EE to actual MSNSPLINVITATIONEventArgs on the transfer start and 
doing all other stuff fine,on abort buttn i have the code : 

  EE.TransferSession.AbortTransfer()
        EE.TransferHandler.CloseAllSessions()
        EE.TransferHandler.CloseSession(EE.TransferSession)
        EE.TransferSession.MessageSession.RemoveTransferSession(EE.TransferSession)
        EE.TransferSession.DataStream.Close()
none of them work
What is the expected output? What do you see instead?

I expect to see the file transfer aborted,but it keeps sending on the 
"Sender"'s side.

What version of the product are you using? (MSNPSharp, OS, Mono etc.)

3 above

Is your code check out from SVN or download from our download site?

Personal produced code 

Please provide any additional information below:

Original issue reported on code.google.com by r.man1...@gmail.com on 20 Oct 2010 at 10:23

GoogleCodeExporter commented 9 years ago
Is your code check out from SVN or download from our download site?

Personal produced code 

Did you download the MSNPSharp library code from the download page or check out 
from SVN?

Original comment by freezing...@gmail.com on 23 Oct 2010 at 8:25

GoogleCodeExporter commented 9 years ago
I have downloaded the exact MSNPSHARP Library but since it does not have the 
Stop-Transfer stuff,i produced my own :

        EE.TransferSession.AbortTransfer();
        EE.TransferHandler.CloseAllSessions();
        EE.TransferHandler.CloseSession(EE.TransferSession);
        EE.TransferSession.MessageSession.RemoveTransferSession(EE.TransferSession);
        EE.TransferSession.DataStream.Close();

Nonce of above this actually work,EE is my msn invitation event,

Original comment by r.man1...@gmail.com on 24 Oct 2010 at 7:41

GoogleCodeExporter commented 9 years ago
Please check out the code in trunk/ and take a look at FileTransferForm.cs

Original comment by freezing...@gmail.com on 25 Oct 2010 at 5:10