main
 1using System;
 2using System.ComponentModel;
 3using System.Deployment.Application;
 4
 5namespace MoMoney.Service.Infrastructure.Updating
 6{
 7    public interface IDeployment
 8    {
 9        UpdateCheckInfo CheckForDetailedUpdate();
10        UpdateCheckInfo CheckForDetailedUpdate(bool persistUpdateCheckResult);
11        bool CheckForUpdate();
12        bool CheckForUpdate(bool persistUpdateCheckResult);
13        void CheckForUpdateAsync();
14        void CheckForUpdateAsyncCancel();
15        bool Update();
16        void UpdateAsync();
17        void UpdateAsyncCancel();
18        void DownloadFileGroup(string groupName);
19        void DownloadFileGroupAsync(string groupName);
20        void DownloadFileGroupAsync(string groupName, object userState);
21        bool IsFileGroupDownloaded(string groupName);
22        void DownloadFileGroupAsyncCancel(string groupName);
23        Version CurrentVersion { get; }
24        Version UpdatedVersion { get; }
25        string UpdatedApplicationFullName { get; }
26        DateTime TimeOfLastUpdateCheck { get; }
27        Uri UpdateLocation { get; }
28        Uri ActivationUri { get; }
29        string DataDirectory { get; }
30        bool IsFirstRun { get; }
31        //event DeploymentProgressChangedEventHandler CheckForUpdateProgressChanged;
32        //event CheckForUpdateCompletedEventHandler CheckForUpdateCompleted;
33        event DeploymentProgressChangedEventHandler UpdateProgressChanged;
34        event AsyncCompletedEventHandler UpdateCompleted;
35        //event DeploymentProgressChangedEventHandler DownloadFileGroupProgressChanged;
36        //event DownloadFileGroupCompletedEventHandler DownloadFileGroupCompleted;
37    }
38}