Exemplo n.º 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));
        }
Exemplo n.º 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);
        }