Exemplo n.º 1
0
        void _controlUnit_OnNewLogItem(Quax.Log log)
        {
            // Inform JobDispatcher for this event
            if (log is Log.WorkerRegisterationRequestLog)
            {
                _jobDispatcher.HandleWorkerRegistrationRequest(((Log.WorkerRegisterationRequestLog)log).Sender);
            }

            // Raise "Quax.JobResultRecive" event
            EventExtensions.Raise(NewLogItem, new object[] { log });
        }
Exemplo n.º 2
0
 void _jobDispatcher_OnNewLogItem(Quax.Log l)
 {
     // Raise "Quax.NewLogItem" event
     EventExtensions.Raise(NewLogItem, new object[] { l });
 }