// Copyright (C) 2003-2010 Xtensive LLC.
// All rights reserved.
// For conditions of distribution and use, see license.
// Created by: Alex Kofman
// Created:    2009.03.18

using Xtensive.Core;

using Xtensive.IoC;

namespace Xtensive.Orm.Serialization
{
  /// <summary>
  /// Serialization scope.
  /// </summary>
  public sealed class SerializationScope : Scope<SerializationContext>
  {
    /// <summary>
    /// Gets the current context.
    /// </summary>
    public new static SerializationContext CurrentContext
    {
      get { return Scope<SerializationContext>.CurrentContext; }
    }

    
    // Constructors

    /// <summary>
    ///   Initializes a new instance of this class.
    /// </summary>
    /// <param name="context">The context.</param>
    public SerializationScope(SerializationContext context) 
      : base(context)
    {
    }
  }
}