Example #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 });
        }