public UploadData uploadFile() { this.checkAuthentication(); this.checkTransactionIsEnabled(); if (uploadedFiles == null) { return(null); } string token = Server.GetUniqueKey(20); SecureUploader channel = new SecureUploader(this, token, this.ManageCompleteUpload, this.ManageFailedUpload); UInt16 port = channel.port; this.channels.TryAdd(token, channel); return(new UploadData(UsefullMethods.GetLocalIPAddress(), port, token)); }
public UploadData uploadFile() { this.checkAuthentication(); this.checkTransactionIsEnabled(); if (uploadedFiles == null) { return null; } string token = Server.GetUniqueKey(20); SecureUploader channel = new SecureUploader(this, token, this.ManageCompleteUpload, this.ManageFailedUpload); UInt16 port = channel.port; this.channels.TryAdd(token, channel); return new UploadData(UsefullMethods.GetLocalIPAddress(), port, token); }