Ejemplo n.º 1
0
        private static IJobDetail ConfigureAndBuildJobDetail <T>(
            JobConfigurator builder,
            Action <IJobConfigurator>?configure) where T : IJob
        {
            builder.OfType <T>();
            configure?.Invoke(builder);
            var jobDetail = builder.Build();

            return(jobDetail);
        }
        private static IJobDetail ConfigureAndBuildJobDetail(
            Type type,
            JobConfigurator builder,
            Action <IJobConfigurator>?configure)
        {
            builder.OfType(type);
            configure?.Invoke(builder);
            var jobDetail = builder.Build();

            return(jobDetail);
        }
        private static IJobDetail ConfigureAndBuildJobDetail(
            Type type,
            JobConfigurator builder,
            Action <IJobConfigurator>?configure,
            out bool hasCustomKey)
        {
            builder.OfType(type);
            configure?.Invoke(builder);
            hasCustomKey = builder.Key is not null;
            var jobDetail = builder.Build();

            return(jobDetail);
        }