简体   繁体   English

删除时的Azure DevOps扩展过程

[英]Azure DevOps Extension Process on Delete

I'm developing Azure DevOps extension. 我正在开发Azure DevOps扩展。 When client download extension he can register in Azure Hub then his account is added to my database. 当客户端下载扩展名时,他可以在Azure Hub中注册,然后将其帐户添加到我的数据库中。

When the client delete extension his account should also be removed from my database. 当客户删除扩展名时,他的帐户也应从我的数据库中删除。

How can I add process for Azure DevOps extension that can be triggered on uninstall / remove extension? 如何为Azure DevOps扩展添加可在卸载/删除扩展上触发的过程?

I don't think there is an API for this, but you can see uninstalls here in the Marketplace portal. 我认为没有针对此的API,但是您可以在Marketplace门户中看到卸载。 I guess you could poll this, or figure out the underlying API that's being used. 我猜您可以对此进行轮询,或者找出正在使用的基础API。 any integration against these APIs is unsupported. 不支持针对这些API的任何集成。

https://marketplace.visualstudio.com/manage/publishers/{PublisherID}/extensions/{ExtensionID}/hub?_a=uninstall

在此处输入图片说明

Also, remember that for troubleshooting purposes people uninstall/reinstall extensions and they may need to reinstall as part of migration/upgrade scenarios for which their assumption is likely going to be that no data is lost in the progress. 另外,请记住,出于故障排除的目的,人们会卸载/重新安装扩展程序,并且他们可能需要在迁移/升级方案的一部分中进行重新安装,在这种情况下,他们的假设很可能是在进度中不会丢失任何数据。

It's probably best to ask for contact details, upon registration, monitor usage and warn that data will be removed after X days of no usage. 最好是询问联系方式,进行注册,监控使用情况并警告在X天不使用后将删除数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM