You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm trying to use your nuget package with my .NET Framework 4.6 application and I've got a single job I need to execute.
In my program.cs I do
await ServiceStartupConfigurator.RegisterServices(_container);
var rc = HostFactory.Run(x =>
{
// x.UseSerilog(Log.Logger);
// Pass it to Topshelf
x.UseQuartzSimpleInjector(_container);
_container.Verify();
x.Service<ScheduleService>(s =>
{
s.ConstructUsingSimpleInjector();
s.ConstructUsing(name => new ScheduleService());
s.WhenStarted(tc => tc.Start());
s.WhenStopped(tc => tc.Stop());
});
x.RunAsLocalSystem();
x.SetDescription(ConfigurationManager.AppSettings.Get("serviceDescription"));
x.SetDisplayName(ConfigurationManager.AppSettings.Get("serviceDisplayName"));
x.SetServiceName(ConfigurationManager.AppSettings.Get("serviceName"));
});
and on the verify I got
System.InvalidOperationException: 'The configuration is invalid. Creating the instance for type IScheduler failed. The registered delegate for type IScheduler threw an exception. Impossibile trovare il metodo 'Quartz.IScheduler Quartz.ISchedulerFactory.GetScheduler()'.'
Hello,
I'm trying to use your nuget package with my .NET Framework 4.6 application and I've got a single job I need to execute.
In my program.cs I do
and on the verify I got
What am i doing wrong?
I'm using the following nugets
Thanks
The text was updated successfully, but these errors were encountered: