Esempio n. 1
0
        public async Task <int> ExecuteAsync()
        {
            var url = _urlStore.GetObjectUrl(_options.Type, _options.Id);

            var existing = await _azureClient.GetAsync(_urlStore.GetObjectUrl(_options.Type, _options.Id));

            var response = await _azureClient.PutAsync(url, await TransformObject(existing));

            _output.Write(response);

            return(0);
        }
Esempio n. 2
0
        public async Task <int> ExecuteAsync()
        {
            var responseText = await _azureClient.GetAsync(_urlStore.GetObjectUrl(_options.Type, _options.Id));

            var simplifiedJson = SimplifyJson(responseText);

            _output.Write(simplifiedJson);

            return(0);
        }