public virtual void MoveTo(UnifiedFile source, String newVirtualPath)
 {
     UnifiedFile.MoveTo(source, newVirtualPath);
 }
 public virtual void OnUnifiedFileUndoingCheckOut(UnifiedFile sender, UnifiedVirtualPathEventArgs e)
 {
     if (UnifiedFileUndoingCheckOut != null)
         UnifiedFileUndoingCheckOut(sender, e);
 }
 public virtual void CopySummary(UnifiedFile src, UnifiedFile dst)
 {
     UnifiedFile.CopySummary(src, dst);
 }
 public virtual void OnUnifiedFileTransmitting(UnifiedFile sender, UnifiedVirtualPathEventArgs e)
 {
     if (UnifiedFileTransmitting != null)
         UnifiedFileTransmitting(sender, e);
 }
 public virtual void OnUnifiedFileMoved(UnifiedFile sender, UnifiedVirtualPathEventArgs e)
 {
     if (UnifiedFileMoved != null)
         UnifiedFileMoved(sender, e);
 }
 public virtual void OnUnifiedFileCheckingIn(UnifiedFile sender, UnifiedVirtualPathEventArgs e)
 {
     if (UnifiedFileCheckingIn != null)
         UnifiedFileCheckingIn(sender, e);
 }
Exemple #7
0
 private void WriteError(string entryId, UnifiedFile file, Error error)
 {
     using (var fileStream = file.Open(FileMode.Create, FileAccess.Write, FileShare.None))
     {
         var writer = new XmlTextWriter(fileStream, Encoding.UTF8) { Formatting = Formatting.Indented };
         writer.WriteStartElement("error");
         writer.WriteAttributeString("errorId", entryId);
         ErrorXml.Encode(error, writer);
         writer.WriteEndElement();
         writer.Flush();
     }
 }
Exemple #8
0
        private ErrorLogEntry ReadError(UnifiedFile file)
        {
            using (var stream = file.Open(FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
            {
                var reader = new XmlTextReader(stream);

                if (reader.IsStartElement("error") == false)
                {
                    return null;
                }

                var entryId = reader.GetAttribute("errorId");
                var error = ErrorXml.Decode(reader);
                return new ErrorLogEntry(this, entryId, error);
            }
        }