/// <summary> /// Removes the given handler. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="dataDelegate"></param> /// <returns></returns> public bool RemoveClosed(OnClosedDelegate dataDelegate) { lock (closedHandlers) { return(closedHandlers.Remove(dataDelegate)); } }
/// <summary> /// Adds this given data handler as the last handler in the data handler chain. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="dataDelegate"></param> public void AddClosedLast(OnClosedDelegate dataDelegate) { lock (closedHandlers) { closedHandlers.AddLast(dataDelegate); } }
/// <summary> /// Adds a data handler {dataDelegate} after the given handler {next}. /// </summary> /// <typeparam name="T"></typeparam> /// <typeparam name="R"></typeparam> /// <param name="next"></param> /// <param name="dataDelegate"></param> /// <returns></returns> public bool AddClosedAfter(OnClosedDelegate next, OnClosedDelegate dataDelegate) { lock (closedHandlers) { return(closedHandlers.AddAfter(next, dataDelegate)); } }
/// <summary> /// Adds a data handler {dataDelegate} before the given handler {previous}. /// </summary> /// <typeparam name="T"></typeparam> /// <typeparam name="R"></typeparam> /// <param name="previous"></param> /// <param name="dataDelegate"></param> /// <returns></returns> public bool AddClosedBefore(OnClosedDelegate previous, OnClosedDelegate dataDelegate) { lock (closedHandlers) { return(closedHandlers.AddBefore(previous, dataDelegate)); } }