/// <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); }
public static void clearObject(object obj) { IClear item = obj as IClear; if (null != item && !item.cleared) { item.clear(); } }
/// <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(); }
/// <summary> /// Adds the scoped object. /// </summary> /// <param name="disposable">The disposable.</param> /// <exception cref="System.NotImplementedException"></exception> public void AddScopedObject(IClear disposable) { }