/// <summary> /// Adds a file to the error collection of the status when /// the form stream indicates that a file has completed in error. /// </summary> /// <param name="sender">Sender</param> /// <param name="fileName">File name</param> /// <param name="identifier">Container identifier.</param> /// <param name="ex">The exception that was raised.</param> void fs_FileCompletedError(object sender, string fileName, object identifier, Exception ex) { _status.ErrorFiles.Add(new UploadedFile(fileName, identifier, _processor.GetHeaderItems(), ex)); }