/// <summary>
        /// Fire <see cref="WorkerWokeUp"/>
        /// </summary>
        /// <param name="threadId">affcted Worker Thread ID</param>
        private void OnWorkerWokeUp( int threadId )
        {
            QuickIOTransferWorkerWokeUpEventArgs args = null;
            if ( WorkerWokeUp != null )
            {
                args = new QuickIOTransferWorkerWokeUpEventArgs( threadId );
                WorkerWokeUp( this, args );
            }

            if ( args == null )
            {
                args = new QuickIOTransferWorkerWokeUpEventArgs( threadId );
            }
            Observer.OnWorkerWokeUp( args );
        }
示例#2
0
 /// <summary>
 /// Fire <see cref="WorkerWokeUp"/>
 /// </summary>
 /// <param name="args">Holds further event information</param>
 public virtual void OnWorkerWokeUp( QuickIOTransferWorkerWokeUpEventArgs args )
 {
     if ( WorkerWokeUp != null )
     {
         WorkerWokeUp( this, args );
     }
 }