public void Set(HttpCookie cookie) { _domain = cookie.Domain; _expires = cookie.Expires; _httpOnly = cookie.HttpOnly; _name = cookie.Name; _path = cookie.Path; _secure = cookie.Secure; _value = cookie.Value; }
internal EventMessage(string eventName, string source, string type, string method, string message, System.DateTime time, ExceptionInfo exception) { _event = eventName; _source = source; _type = type; _method = method; _message = message; _time = time; _exception = exception; }
private void Reset() { _source = string.Empty; _event = string.Empty; _type = string.Empty; _method = string.Empty; _message = string.Empty; _time = new System.DateTime(); _details = null; _parameters = null; }
public void Read(BinaryReader reader) { var adaptor = new BinaryReadAdaptor(reader); _domain = adaptor.ReadStringNullable(); _expires = adaptor.ReadDateTime().ToSystemDateTime(); _httpOnly = adaptor.ReadBoolean(); _name = adaptor.ReadStringNullable(); _path = adaptor.ReadStringNullable(); _secure = adaptor.ReadBoolean(); _value = adaptor.ReadStringNullable(); }
private void ReadStandard(BinaryReader reader) { var adaptor = new BinaryReadAdaptor(reader); _event = adaptor.ReadString(); _source = adaptor.ReadString(); _type = adaptor.ReadString(); _method = adaptor.ReadString(); _message = adaptor.ReadString(); _time = new System.DateTime(adaptor.ReadInt64()); _sequence = adaptor.ReadInt32(); if (adaptor.ReadBoolean()) { _exception = ExceptionInfo.FromBinary(reader); } }