mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-15 09:35:37 -05:00
add a flag to make message processing parallel (#1482)
* add a flag to make message processing parallel * use discard * add comment
This commit is contained in:
@@ -45,6 +45,7 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
|
||||
SqlToolsContext sqlToolsContext = new SqlToolsContext(hostDetails);
|
||||
ServiceHost serviceHost = HostLoader.CreateAndStartServiceHost(sqlToolsContext);
|
||||
serviceHost.MessageDispatcher.ParallelMessageProcessing = commandOptions.ParallelMessageProcessing;
|
||||
|
||||
// If this service was started by another process, then it should shutdown when that parent process does.
|
||||
if (commandOptions.ParentProcessId != null)
|
||||
@@ -58,9 +59,9 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
try
|
||||
try
|
||||
{
|
||||
Logger.WriteWithCallstack(TraceEventType.Critical, $"An unhandled exception occurred: {ex}");
|
||||
Logger.WriteWithCallstack(TraceEventType.Critical, $"An unhandled exception occurred: {ex}");
|
||||
}
|
||||
catch (Exception loggerEx)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user