Пример #1
0
 internal async Task InternalTeardownAsync(WorkloadContext context)
 {
     if (Interlocked.Increment(ref isDisposed) == 1)
     {
         await TeardownAsync(context);
     }
 }
Пример #2
0
        public override async Task ExecuteAsync(WorkloadContext context)
        {
            var response = await DefaultHttpClient.DeleteAsync(url, context.CancellationToken).ConfigureAwait(false);

            await ReadResponseAsync(response, context.CancellationToken).ConfigureAwait(false);
        }
Пример #3
0
 public virtual Dictionary <string, string>?Complete(WorkloadContext context)
 {
     return(null);
 }
Пример #4
0
 public virtual Task TeardownAsync(WorkloadContext context)
 {
     return(Task.CompletedTask);
 }
Пример #5
0
 public virtual Task SetupAsync(WorkloadContext context)
 {
     return(Task.CompletedTask);
 }
Пример #6
0
 public abstract Task ExecuteAsync(WorkloadContext context);