| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- // **********************************************************************************
- // CassiniDev - http://cassinidev.codeplex.com
- //
- // Copyright (c) 2010 Sky Sanders. All rights reserved.
- //
- // This source code is subject to terms and conditions of the Microsoft Public
- // License (Ms-PL). A copy of the license can be found in the license.txt file
- // included in this distribution.
- //
- // You must not remove this notice, or any other, from this software.
- //
- // **********************************************************************************
- #region
- using System;
- #endregion
- namespace CassiniDev.ServerLog
- {
- /// <summary>
- /// TODO: get rid of status code and url in the database and simply parse the headers
- /// </summary>
- [Serializable]
- public class LogInfo : ICloneable
- {
- public byte[] Body { get; set; }
- public Guid ConversationId { get; set; }
- public DateTime Created { get; set; }
- public string Exception { get; set; }
- public string Headers { get; set; }
- public string Identity { get; set; }
- public string PathTranslated { get; set; }
- public string PhysicalPath { get; set; }
- public long RowId { get; set; }
- public long RowType { get; set; }
- public long? StatusCode { get; set; }
- public string Url { get; set; }
- #region ICloneable Members
- object ICloneable.Clone()
- {
- return MemberwiseClone();
- }
- #endregion
- public LogInfo Clone()
- {
- LogInfo result = (LogInfo) ((ICloneable) this).Clone();
- if (Body != null)
- {
- result.Body = new byte[Body.Length];
- Body.CopyTo(result.Body, 0);
- }
- return result;
- }
- }
- }
|