using System; using System.Collections.Specialized; using System.Xml; namespace AyAEM { #region Publishing Interfaces /// /// Interface to publish exception information. All exception information is passed as the chain of exception objects. /// public interface IExceptionPublisher { /// /// Method used to publish exception information and additional information. /// /// The exception object whose information should be published. /// A collection of additional data that should be published along with the exception information. /// A collection of name/value attributes specified in the config settings. void Publish(Exception exception, NameValueCollection additionalInfo, NameValueCollection configSettings); } /// /// Interface to publish exception information. All exception information is passed as XML. /// public interface IExceptionXmlPublisher { /// /// Method used to publish exception information and any additional information in XML. /// /// An XML Document containing the all exception information. /// A collection of name/value attributes specified in the config settings. void Publish(XmlDocument exceptionInfo, NameValueCollection configSettings); } #endregion }