Exemple #1
0
 /// <summary>
 /// Creates an instance of async class, that executes
 /// the wrapped code block on the developer supplied
 /// Managed IOCP based ThreadPool
 /// </summary>
 /// <param name="ad">
 /// Anonymous delegate wrapping the code block to execute
 /// </param>
 /// <param name="tp">Managed IOCP based ThreadPool object</param>
 /// <param name="dependentOnAsync">
 /// async object on which the current instance of async
 /// depends on. The code wrapped by the current instance
 /// of async object will be executed after the code wrapped
 /// by dependentOnAsync object has completed execution
 /// </param>
 /// <param name="executionCompleteCallback">
 /// Delegate handler that will be called when the execution of the
 /// code block wrapped by this instance is completed. Dependent
 /// async objects will be scheduled for execution after the
 /// completion callback has executed
 /// </param>
 public Async(AsyncDelegate ad, Sonic.Net.ThreadPool tp, Async dependentOnAsync,
              AsyncCodeBlockExecutionCompleteCallback executionCompleteCallback)
 {
     Initialize(ad, tp, new Async[] { dependentOnAsync }, executionCompleteCallback);
 }
Exemple #2
0
 /// <summary>
 /// Creates an instance of async class, that executes
 /// the wrapped code block on the default AppDomain wide
 /// Managed IOCP based ThreadPool
 /// </summary>
 /// <param name="ad">
 /// Anonymous delegate wrapping the code block to execute
 /// </param>
 /// <param name="dependentOnAsync">
 /// async object on which the current instance of async
 /// depends on. The code wrapped by the current instance
 /// of async object will be executed after the code wrapped
 /// by dependentOnAsync object has completed execution
 /// </param>
 /// <param name="executionCompleteCallback">
 /// Delegate handler that will be called when the execution of the
 /// code block wrapped by this instance is completed. Dependent
 /// async objects will be scheduled for execution after the
 /// completion callback has executed
 /// </param>
 public Async(AsyncDelegate ad, Async dependentOnAsync,
              AsyncCodeBlockExecutionCompleteCallback executionCompleteCallback)
 {
     Initialize(ad, null, new Async[] { dependentOnAsync }, executionCompleteCallback);
 }
Exemple #3
0
 /// <summary>
 /// Creates an instance of async class, that executes
 /// the wrapped code block on the developer supplied
 /// Managed IOCP based ThreadPool
 /// </summary>
 /// <param name="ad">
 /// Anonymous delegate wrapping the code block to execute
 /// </param>
 /// <param name="tp">Managed IOCP based ThreadPool object</param>
 /// <param name="dependentOnAsync">
 /// async object on which the current instance of async
 /// depends on. The code wrapped by the current instance
 /// of async object will be executed after the code wrapped
 /// by dependentOnAsync object has completed execution
 /// </param>
 public Async(AsyncDelegate ad, Sonic.Net.ThreadPool tp, Async dependentOnAsync)
 {
     Initialize(ad, tp, new Async[] { dependentOnAsync }, null);
 }
Exemple #4
0
 /// <summary>
 /// Creates an instance of async class, that executes
 /// the wrapped code block on the default AppDomain wide
 /// Managed IOCP based ThreadPool
 /// </summary>
 /// <param name="ad">
 /// Anonymous delegate wrapping the code block to execute
 /// </param>
 /// <param name="dependentOnAsync">
 /// async object on which the current instance of async
 /// depends on. The code wrapped by the current instance
 /// of async object will be executed after the code wrapped
 /// by dependentOnAsync object has completed execution
 /// </param>
 public Async(AsyncDelegate ad, Async dependentOnAsync)
 {
     Initialize(ad, null, new Async[] { dependentOnAsync }, null);
 }