mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
pretty...
This commit is contained in:
parent
beaf0cf939
commit
afafc6b032
285 changed files with 32688 additions and 784 deletions
73
CassiniDev/Logging/LogInfo.cs
Normal file
73
CassiniDev/Logging/LogInfo.cs
Normal file
|
@ -0,0 +1,73 @@
|
|||
// **********************************************************************************
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue