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