예제 #1
0
        private void SafeAdd(IJob job)
        {
            Asserts <ArgumentNullException> .IsNotNull(job);

            Log.Verbose("BatchQueue:SafeAdd({0})>", job.Code);

            try
            {
                job.Add();
            }
            catch (Exception e)
            {
                Log.Error("Job {0} {1}", job.Code, e.Message);
            }
            finally
            {
                Log.Verbose("BatchQueue:SafeAdd({0})<", job.Code);
            }
        }