Exemple #1
0
        /// <summary>
        /// Returns the job from the JobFaulted event
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="source"></param>
        /// <returns></returns>
        public static T GetJob <T>(this JobFaulted source)
        {
            if (source == null)
            {
                throw new ArgumentNullException(nameof(source));
            }

            return(ObjectTypeDeserializer.Deserialize <T>(source.Job));
        }
 protected virtual void OnJobFaulted(JobFaultedEventArgs <CachedLog> e)
 {
     JobFaulted?.Invoke(this, e);
 }