在本地运行应用程序时,我无法获取单例锁问题。我该如何解决?
下面是我的代码
static void Main() { JobHostConfiguration config = new`enter code here` JobHostConfiguration(); config.UseTimers(); AutoMapperManager.SetAutomapper(); JobHost host = new JobHost(config); //Task.Factory.StartNew(() => host.Call(typeof(Functions).GetMethod("GetActionItemPullData"))); config.Tracing.ConsoleLevel = TraceLevel.Verbose; host.RunAndBlock(); }
此致Vantage