Exemplo n.º 1
0
 internal async Task InternalTeardownAsync(WorkloadContext context)
 {
     if (Interlocked.Increment(ref isDisposed) == 1)
     {
         await TeardownAsync(context);
     }
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public virtual Dictionary <string, string>?Complete(WorkloadContext context)
 {
     return(null);
 }
Exemplo n.º 4
0
 public virtual Task TeardownAsync(WorkloadContext context)
 {
     return(Task.CompletedTask);
 }
Exemplo n.º 5
0
 public virtual Task SetupAsync(WorkloadContext context)
 {
     return(Task.CompletedTask);
 }
Exemplo n.º 6
0
 public abstract Task ExecuteAsync(WorkloadContext context);