63 lines
1.5 KiB
C#
63 lines
1.5 KiB
C#
using JD.Kernel.StaticHelpers;
|
|
using JD.LogService;
|
|
using JD.TeaBoxAddinSystem.Addins.Description;
|
|
|
|
namespace JD.TeaBoxAddinSystem.Addins
|
|
{
|
|
/// <summary>
|
|
/// Context used during deserialization of an <see cref="ExtensionNode"/> or <see cref="ConditionNode"/>.
|
|
/// </summary>
|
|
public class DeserializationContext
|
|
{
|
|
#region Variables
|
|
|
|
private readonly NodeDescription m_description;
|
|
private readonly LoggingContext m_loggingContext;
|
|
|
|
#endregion
|
|
|
|
#region Constructor
|
|
|
|
/// <summary>
|
|
/// Constructor.
|
|
/// </summary>
|
|
/// <param name="description"></param>
|
|
/// <param name="loggingContext"></param>
|
|
public DeserializationContext(NodeDescription description, LoggingContext loggingContext)
|
|
{
|
|
Throw.IfNull(description, "description");
|
|
Throw.IfNull(loggingContext, "loggingContext");
|
|
|
|
m_description = description;
|
|
m_loggingContext = loggingContext;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
/// <summary>
|
|
/// Description.
|
|
/// </summary>
|
|
public NodeDescription Description
|
|
{
|
|
get
|
|
{
|
|
return m_description;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Logging Context.
|
|
/// </summary>
|
|
public LoggingContext LoggingContext
|
|
{
|
|
get
|
|
{
|
|
return m_loggingContext;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|