internal async Task InternalTeardownAsync(WorkloadContext context) { if (Interlocked.Increment(ref isDisposed) == 1) { await TeardownAsync(context); } }
public override async Task ExecuteAsync(WorkloadContext context) { var response = await DefaultHttpClient.DeleteAsync(url, context.CancellationToken).ConfigureAwait(false); await ReadResponseAsync(response, context.CancellationToken).ConfigureAwait(false); }
public virtual Dictionary <string, string>?Complete(WorkloadContext context) { return(null); }
public virtual Task TeardownAsync(WorkloadContext context) { return(Task.CompletedTask); }
public virtual Task SetupAsync(WorkloadContext context) { return(Task.CompletedTask); }
public abstract Task ExecuteAsync(WorkloadContext context);