Add Exception handling, set min pool size to zero

This commit is contained in:
2025-04-24 23:42:22 -04:00
parent dbd38cdd0d
commit f170f0f20a
9 changed files with 505 additions and 312 deletions

View File

@@ -13,9 +13,17 @@ namespace MarketDataServer.Controllers
[HttpGet(Name = "GetWatchList")]
public IEnumerable<String> GetWatchList(String token,String watchList)
{
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("[{0:G}][WatchListController::GetWatchList]", DateTime.Now));
if (!Authorizations.GetInstance().IsAuthorized(token)) return null;
return WatchListDA.GetWatchList(watchList);
try
{
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("[{0:G}][WatchListController::GetWatchList]", DateTime.Now));
if (!Authorizations.GetInstance().IsAuthorized(token)) return null;
return WatchListDA.GetWatchList(watchList);
}
catch(Exception exception)
{
MDTrace.WriteLine(LogLevel.DEBUG,$"Exception:{exception.ToString()}");
return null;
}
}
}
}