Пример #1
0
        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));
        }
Пример #2
0
        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);
        }