Revert async dispatcher change 08c74be (#1655)

* Revert 08c74be51f async message handling

* Fix merge error in SetEventHandler
This commit is contained in:
Karl Burtram
2022-08-29 10:44:26 -07:00
committed by GitHub
parent 6566a716b6
commit 3885c8f680
2 changed files with 48 additions and 58 deletions

View File

@@ -1197,7 +1197,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
parameters.OwnerUri,
out connInfo);
result.Success = true;
result.Notebooks = await AgentNotebookHelper.GetAgentNotebooks(connInfo);
result.Notebooks = AgentNotebookHelper.GetAgentNotebooks(connInfo).Result;
}
catch (Exception e)
{
@@ -1246,7 +1246,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
ConnectionServiceInstance.TryFindConnection(
parameters.OwnerUri,
out connInfo);
result.NotebookMaterialized = await AgentNotebookHelper.GetMaterializedNotebook(connInfo, parameters.NotebookMaterializedId, parameters.TargetDatabase);
result.NotebookMaterialized = AgentNotebookHelper.GetMaterializedNotebook(connInfo, parameters.NotebookMaterializedId, parameters.TargetDatabase).Result;
result.Success = true;
}
catch (Exception e)