Пример #1
0
 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;
 }
Пример #2
0
 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;
 }
Пример #3
0
 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;
 }
Пример #4
0
        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();
        }
Пример #5
0
        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);
            }
        }