public static EngineConfig GetConfig()
        {
            if (Object.ReferenceEquals(config, null))
            {
                config = new EngineConfig();
            }

            return config;
        }
 public static void ResetConfig()
 {
     config = new EngineConfig();
 }
        public void SetConfig(HttpListenerContext context)
        {
            JObject data = GetJsonPayload(context.Request);
            File.WriteAllText(config.FilePath, data.ToString());

            EngineConfig.ResetConfig();
            this.config = EngineConfig.GetConfig();

            this.SendACK(context);
        }