Ejemplo n.º 1
0
        public static async Task <bool> CreateBucket(BucketObject bucketObject)
        {
#if MOCK
            return(await Task.FromResult(true));
#else
            var bucketManager = new BucketManager(_currentMac, _config);
            var queryResult   =
                await Task.Factory.StartNew(() => bucketManager.Create(bucketObject.Name, bucketObject.Region));

            return(queryResult.Code == 200);
#endif
        }