mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-01 17:24:42 -05:00
Removing a lot of redundant async/await wrappers (#1486)
* Removing a lot of redundant async/await wrappers * Removing kusto changes
This commit is contained in:
@@ -201,10 +201,10 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
IDisposable disposable = service as IDisposable;
|
||||
if (serviceHost != null && disposable != null)
|
||||
{
|
||||
serviceHost.RegisterShutdownTask(async (shutdownParams, shutdownRequestContext) =>
|
||||
serviceHost.RegisterShutdownTask((_, _) =>
|
||||
{
|
||||
disposable.Dispose();
|
||||
await Task.FromResult(0);
|
||||
return Task.FromResult(0);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user