/// <summary> /// Fire <see cref="WorkerPickedJob"/> /// </summary> /// <param name="threadId">affcted Worker Thread ID</param> private void OnWorkerIsWaiting( int threadId ) { QuickIOTransferWorkerIsSleepingEventArgs args = null; if ( WorkerIsWaiting != null ) { args = new QuickIOTransferWorkerIsSleepingEventArgs( threadId ); WorkerIsWaiting( this, args ); } if ( args == null ) { args = new QuickIOTransferWorkerIsSleepingEventArgs( threadId ); } Observer.OnWorkerIsWaiting( args ); }
/// <summary> /// Fire <see cref="WorkerPickedJob"/> /// </summary> /// <param name="args">Holds further event information</param> public virtual void OnWorkerIsWaiting( QuickIOTransferWorkerIsSleepingEventArgs args ) { if ( WorkerIsWaiting != null ) { WorkerIsWaiting( this, args ); } }