Ejemplo n.º 1
0
 /// <summary>
 /// 静态构造器
 /// </summary>
 static QuartzJobFactory()
 {
     _Instance        = new QuartzJobFactory();
     _ServiceProvider = ResolveMediator.GetServiceProvider();
     _RunningJobs     = new ConcurrentDictionary <object, IServiceScope>();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 创建服务提供者
        /// </summary>
        public IServiceProvider CreateServiceProvider(IServiceCollection containerBuilder)
        {
            IServiceProvider serviceProvider = ResolveMediator.GetServiceProvider();

            return(serviceProvider);
        }