Exemple #1
0
 public static Server GetCurrentServer()
 {
     logger.Debug("GetCurrentServer");
     try
     {
         return(DbProvider.GetServer(MachineService.GetServerName()));
     }
     catch (Exception ex)
     {
         logger.Error(ex);
         Logging.WriteLogEvent(LoggingSource.BiblosDS_General, "ServerService." + MethodBase.GetCurrentMethod().Name, ex.ToString(), LoggingOperationType.BiblosDS_General, LoggingLevel.BiblosDS_Errors);
         throw;
     }
 }