Exemplo n.º 1
0
        /// <summary>
        /// Adds the scoped object.
        /// </summary>
        /// <param name="input">The input.</param>
        public void AddScopedObject(IClear input)
        {
            if (_clears == null)
            {
                _clears = new ConcurrentBag <IClear>();
            }

            _clears.Add(input);
        }
Exemplo n.º 2
0
    public static void clearObject(object obj)
    {
        IClear item = obj as IClear;

        if (null != item && !item.cleared)
        {
            item.clear();
        }
    }
Exemplo n.º 3
0
 /// <summary>
 /// Adds the scoped object.
 /// </summary>
 /// <param name="disposable">The disposable.</param>
 /// <exception cref="System.NotImplementedException"></exception>
 public void AddScopedObject(IClear disposable)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Adds the scoped object.
 /// </summary>
 /// <param name="disposable">The disposable.</param>
 /// <exception cref="System.NotImplementedException"></exception>
 public void AddScopedObject(IClear disposable)
 {
 }