//private bool CheckFileAccess() //{ // try // { // var tempFolder = ApplicationConfig.AppInstallFolder; // File.WriteAllText(string.Format("{0}\\{1}", tempFolder, "ping.txt"), string.Format("ping-{0}", DateTime.Now.ToString())); // return true; // } // catch (Exception ex) // { // _logger.Error(string.Format("Check file Access error {0}", ex.Message), ex); // return false; // } //} private bool MongoDBConnection() { return(_pingService.PingDb()); }