private static void ProcessQueue() { Config.Settings.ConnectionString = Environment.GetEnvironmentVariable("DB") ?? Config.Settings.ConnectionString; Config.Settings.ConnectionString = "Data Source=;Initial Catalog=;User=;Password="******"Data Source=localhost;Initial Catalog=ninboci;integrated security=true"; var taskQueue = new TaskQueue(); TaskQueue.Wipe(); taskQueue.Enqueue("TileArea", "{\"AreaType\":1,\"Number\":1841, \"MapLayerName\":\"Nin\"}"); var context = new NinServiceContext(); TaskQueue.ProcessNext(context); }
public void Run() { Log(LogPriority.Info, "Nin Service starting..."); foreach (var layer in Config.Settings.Map.Layers) { Log(LogPriority.Info, $"Map layer: {layer}"); } var schedule = Config.Settings.Schedule; schedule.AddDefaultsIfEmpty(); scheduler = new Scheduler(schedule); queue = new TaskQueue(); context = new NinServiceContext(); Log(LogPriority.Verbose, "Hello, my name is " + Environment.UserName + "."); RunLoop(); }