Exemple #1
0
 /// <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));
     }
 }
Exemple #2
0
 /// <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);
     }
 }
Exemple #3
0
 /// <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));
     }
 }
Exemple #4
0
 /// <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));
     }
 }