Inheritance: System.Attribute
Exemplo n.º 1
0
        public static JobDescription Create(Type jobType)
        {
            var attr     = JobAttribute.Get(jobType);
            var descAttr = jobType.GetCustomAttribute <DescriptionAttribute>();

            return(new JobDescription(
                       name: attr.Name,
                       description: descAttr == null ? null : descAttr.Description,
                       eventProviderId: attr.EventProvider == null ? (Guid?)null : (Guid?)EventSource.GetGuid(attr.EventProvider),
                       implementation: jobType));
        }
Exemplo n.º 2
0
 public virtual Task <InvocationState> Enqueue(Type job, Dictionary <string, string> payload, TimeSpan delayFor)
 {
     return(Enqueue(JobAttribute.Get(job).Name, payload, delayFor));
 }
Exemplo n.º 3
0
 public virtual Task <InvocationState> Enqueue(Type job)
 {
     return(Enqueue(JobAttribute.Get(job).Name, new Dictionary <string, string>(), TimeSpan.Zero));
 }