I am using Quartz.Net scheduler library in .Net Core. And it has an extension method. But I want to use it dynamically. How can I pass generic type of my classes from its string key ? RUQRAktarim is my generic class. I have another classes like it. And I don't want to repeat code which is in below. I have my class names as a string in appsettings. So i want to repeat this code from string class names. [app.UseQuartzJob<"classname">]
Original code like that :
app.UseQuartzJob<RUQRAktarim>(new List<TriggerBuilder>
{
TriggerBuilder.Create()
.WithIdentity("Trigger" + i.ToString(),jobName)
.WithCronSchedule(cronExpression,
x => x.WithMisfireHandlingInstructionFireAndProceed()),
});