1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
using MoMoney.Service.Contracts.Infrastructure.Updating; namespace MoMoney.Service.Infrastructure.Updating { public class CancelUpdate : ICancelUpdate { readonly IDeployment deployment; public CancelUpdate(IDeployment deployment) { this.deployment = deployment; } public void run() { if (null == deployment) return; deployment.UpdateAsyncCancel(); } } }