I'm looking for a way of cleaning old application versions in Service Fabric via the SDK. It seems there is no way to unprovision a version by using FabricClient
's ApplicationManager
(similar to the action available in the Service Fabric Explorer, Application Type view) ?
I can get a list of all the versions for an application type by using: fabricClient.QueryManager.GetApplicationTypeListAsync()
How about this :
public System.Threading.Tasks.Task UnprovisionApplicationAsync (string applicationTypeName, string applicationTypeVersion);
Unregisters and removes a Service Fabric application type from the cluster.
SF在节点上执行常规同步,因此过一会儿将清除未配置版本的磁盘上的文件夹。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.