summaryrefslogtreecommitdiff
path: root/product/Service/Infrastructure/Updating/CancelUpdate.cs
blob: f8233bc87d8508a8eb4e64128da877e09ff8f122 (plain)
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();
        }
    }
}