Ejemplo n.º 1
0
		public void PostFileContents(string url, IEnumerable<FileInfo> files, FilePostBehavior behavior, IDictionary<string, string> formData, System.Windows.Threading.Dispatcher dispatcher)
		{
			this.dispatcher = dispatcher;
			this.url = url;
			this.behavior = behavior;
			this.formData = formData;
			this.files = files;
			this.enumerator = files.GetEnumerator();
			OnFileSequenceProgressReport(0, 1);
			this.StartUpload();
		}
Ejemplo n.º 2
0
 public void PostFileContents(string url, IEnumerable <FileInfo> files, FilePostBehavior behavior, IDictionary <string, string> formData, System.Windows.Threading.Dispatcher dispatcher)
 {
     this.dispatcher = dispatcher;
     this.url        = url;
     this.behavior   = behavior;
     this.formData   = formData;
     this.files      = files;
     this.enumerator = files.GetEnumerator();
     OnFileSequenceProgressReport(0, 1);
     this.StartUpload();
 }
Ejemplo n.º 3
0
		public void PostFileContents(string url, IEnumerable<FileInfo> files, FilePostBehavior behavior, IDictionary<string, string> formData, System.Windows.Threading.Dispatcher dispatcher)
		{
			this.dispatcher = dispatcher;
			this.url = url;
			this.behavior = behavior;
			this.formData = formData ?? new Dictionary<string, string>();
			this.enumerator = files.GetEnumerator();
			this.filesToTransfer = files.Count();
			this.filesTransferred = 0;

			if (enumerator.MoveNext())
				StartNextFile();
			else
				OnUploadCompleted(true, null);
		}
Ejemplo n.º 4
0
        public void PostFileContents(string url, IEnumerable <FileInfo> files, FilePostBehavior behavior, IDictionary <string, string> formData, System.Windows.Threading.Dispatcher dispatcher)
        {
            this.dispatcher       = dispatcher;
            this.url              = url;
            this.behavior         = behavior;
            this.formData         = formData ?? new Dictionary <string, string>();
            this.enumerator       = files.GetEnumerator();
            this.filesToTransfer  = files.Count();
            this.filesTransferred = 0;

            if (enumerator.MoveNext())
            {
                StartNextFile();
            }
            else
            {
                OnUploadCompleted(true, null);
            }
        }