0

Currently I'm doing this the old fashioned way!

            var list =
                AppDomain.CurrentDomain.GetAssemblies()
                    .SelectMany(x => x.GetTypes())
                    .Where(t => typeof(IJob).IsAssignableFrom(t))
                    .ToList();

Is there a more "Quartz" way of doing this without manual reflection? I can't see anything about it in the docs or manually poking around namespaces.

user3791372
  • 4,445
  • 6
  • 44
  • 78
  • Please, can you be more specific. Did you want all scheduled Jobs or all your Jobs that implements `IJob` or all Jobs that come along with Quartz? – Rabban Nov 21 '16 at 08:46
  • Available IJob implementations that are available on the system. – user3791372 Nov 21 '16 at 10:16
  • Fortunately there is no Quartz way. Quartz is terrible dirty under the Hood. But to answer your question, we used a similar way to detect IJobs in our system. And i would say this way is ok. But you have to Filter all `Nullable` before. If you call `typeof(Nullable).IsAssignableFrom(t)` you will run in a [Internal Error 80131506](http://stackoverflow.com/q/4367664/6666799) – Rabban Nov 21 '16 at 10:37

0 Answers0