예제 #1
0
 public IActionResult Get()
 {
     try
     {
         ConfigurationModel retVal = new ConfigurationModel();
         retVal.WatcherWorkerDelayTime = _helper.OnDelay(null);
         retVal.TokenExpirationTime    = _config.AccessTokenExpiration;
         return(Ok(retVal));
     }
     catch
     {
         return(StatusCode(500));
     }
 }
예제 #2
0
 public IActionResult Get()
 {
     try
     {
         ConfigurationModel retVal = new ConfigurationModel();
         retVal.WatcherWorkerDelayTime = helper.OnDelay(null);
         retVal.TokenExpirationTime    = config.AccessTokenExpiration;
         return(Ok(retVal));
     }
     catch (Exception ex)
     {
         mediator.Publish(new SendBugEvent(ex.Message, "CORE"));
         return(StatusCode(500));
     }
 }