Skip to content

Commit 95ede59

Browse files
authored
Fix missing overloads on client (#2802)
* Fix missing overloads on client * update release_notes.md
1 parent 2c2b51c commit 95ede59

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

release_notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### New Features
66

77
- Add `suspendPostUri` and `resumePostUri` to the list of returned URIs in `CreateCheckStatusResponseAsync`. (https://github.com/Azure/azure-functions-durable-extension/pull/2785)
8+
- Fix `NotSupportedException` when calling `PurgeAllInstancesAsync` and `PurgeInstanceAsync`
89

910
### Bug Fixes
1011

src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ public override AsyncPageable<OrchestrationMetadata> GetAllInstancesAsync(Orches
4646
}
4747

4848
public override Task<PurgeResult> PurgeAllInstancesAsync(
49-
PurgeInstancesFilter filter, CancellationToken cancellation = default)
49+
PurgeInstancesFilter filter, PurgeInstanceOptions? options = null, CancellationToken cancellation = default)
5050
{
51-
return this.inner.PurgeAllInstancesAsync(filter, cancellation);
51+
return this.inner.PurgeAllInstancesAsync(filter, options, cancellation);
5252
}
5353

5454
public override Task<PurgeResult> PurgeInstanceAsync(
55-
string instanceId, CancellationToken cancellation = default)
55+
string instanceId, PurgeInstanceOptions? options = null, CancellationToken cancellation = default)
5656
{
57-
return this.inner.PurgeInstanceAsync(instanceId, cancellation);
57+
return this.inner.PurgeInstanceAsync(instanceId, options, cancellation);
5858
}
5959

6060
public override Task RaiseEventAsync(

0 commit comments

Comments
 (0)