public async Task <OperationResult> DeleteBucket(string key)
        {
            try
            {
                await _client.DeleteBucketAsync(key);

                return(new OperationResult(true, "Deleted bucket", HttpStatusCode.OK));
            }
            catch (GoogleApiException e)
            {
                return(new OperationResult(false, e.Message, (HttpStatusCode)e.Error.Code));
            }
        }
Beispiel #2
0
 private async Task DeleteBucketAsync()
 {
     //Cleanup the bucket after done with transcription
     await _client.DeleteBucketAsync(_bucketName);
 }