我曾尝试使用当前的例子,但我得到的错误: https://gist.github.com/mhenrixon/772643如何使用Ioc结构图来处理石英?
ForSingletonOf<IScheduler>().Use(ctx =>
{
var scheduler = ctx.GetInstance<ISchedulerFactory>().GetScheduler();
scheduler.JobFactory = ctx.GetInstance<IJobFactory>();
return scheduler;
});
的错误:“与语句体lambda表达式不能转换为表达式树”。
其实我需要一个使用IoC解决方案IJobFactory