In my unit/integration tests (xUnit.net) I need to run some cleanup code that will remove some resources that may have been created. I'd like to do this only once. DeleteBucket is an async method. What are my options? Is there a "pre-dispose" event?
public void Dispose()
{
var api = new AwsApi(creds, stdout);
var success = await api.DeleteBucket(bucket, new CancellationTokenSource());
}