Beispiel #1
0
        private async Task <bool> DeleteManifestOnServer(ForgeObjectInfo item)
        {
            try {
                DerivativesApi md = new DerivativesApi();
                md.Configuration.AccessToken = accessToken;
                string urn = URN((string)BucketsInRegion.SelectedItem, item);
                ApiResponse <dynamic> response = await md.DeleteManifestAsyncWithHttpInfo(urn);

                httpErrorHandler(response, "Failed to delete manifest");
                item.Manifest             = null;
                item.TranslationRequested = StateEnum.Idle;
            } catch (Exception ex) {
                item.TranslationRequested = StateEnum.Idle;
                Debug.WriteLine(ex.Message);
                return(false);
            }
            return(true);
        }