public override void ReadData(BinaryReaderExtension objBinaryReader) { base.ReadData(objBinaryReader); Enabled = objBinaryReader.ReadBoolean(); MessageTypes = objBinaryReader.ReadTransportableObject <MessageTypeCollection>(); }
public FileLog(MessageTypeCollection objMessageTypes, string strDirectory, string strFileName) : base(objMessageTypes) { FileName = strFileName; Directory = strDirectory; FileStream = null; TextWriter = null; }
public LogBase(MessageTypeCollection objMessageTypes) : base() { if (objMessageTypes == null) { throw new ArgumentNullException("objMessageTypes", "A valid non-null MessageTypeCollection is required.."); } _blnIsDisposed = false; Enabled = true; MessageTypes = objMessageTypes; }
public override void ReadData(SerializedObject objSerializedObject) { base.ReadData(objSerializedObject); Enabled = objSerializedObject.Values.GetValue <bool>("Enabled", true); MessageTypeCollection objMessageTypes = objSerializedObject.Objects.GetObject <MessageTypeCollection>("MessageTypes", null); if (objMessageTypes == null) { objMessageTypes = new MessageTypeCollection(); } MessageTypes = objMessageTypes; _blnIsDisposed = false; }
public FileLog(MessageTypeCollection objMessageTypes) : this(objMessageTypes, DefaultDirectory, DefaultFileName) { }
public EmailLog(SmtpClient objSmtpClient, MailMessage objDefaultMailMessage, MessageTypeCollection objMessageTypes) : base(objMessageTypes) { SmtpClient = objSmtpClient; DefaulMailMessage = objDefaultMailMessage; }
public EventLog(string strLog, string strSource, MessageTypeCollection objMessageTypes) : base(objMessageTypes) { Log = strLog; Source = strSource; }