Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/TriggerBinding/SqlTableChangeMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ public SqlTableChangeMonitor(

public void Dispose()
{
// When the CheckForChanges loop is finished, it will cancel the lease renewal loop.
this._cancellationTokenSourceCheckForChanges.Cancel();
}

Expand Down
1 change: 0 additions & 1 deletion src/TriggerBinding/SqlTriggerListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ public async Task StartAsync(CancellationToken cancellationToken)

this._logger.LogInformation($"Starting SQL trigger listener for table: '{this._userTable.FullName}', function ID: '{this._userFunctionId}'.");

// TODO: Check if passing the cancellation token would be beneficial.
this._changeMonitor = new SqlTableChangeMonitor<T>(
this._connectionString,
userTableId,
Expand Down