mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-13 03:28:37 -05:00
Schema compare cancel operation (#826)
* First cut of schema compare cancel (private nuget) * Update Dacfx nuget to a published version
This commit is contained in:
@@ -54,7 +54,7 @@ namespace Microsoft.SqlTools.ServiceLayer.SchemaCompare
|
||||
|
||||
try
|
||||
{
|
||||
this.PublishResult = this.ComparisonResult.PublishChangesToTarget();
|
||||
this.PublishResult = this.ComparisonResult.PublishChangesToTarget(this.CancellationToken);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -67,6 +67,7 @@ namespace Microsoft.SqlTools.ServiceLayer.SchemaCompare
|
||||
// The schema compare public api doesn't currently take a cancellation token so the operation can't be cancelled
|
||||
public void Cancel()
|
||||
{
|
||||
this.cancellation.Cancel();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user