main
1using System;
2using System.ComponentModel;
3using System.Deployment.Application;
4using System.Threading;
5using MoMoney.Service.Infrastructure.Updating;
6
7namespace momoney.service.infrastructure.updating
8{
9 public class NullDeployment : IDeployment
10 {
11 public UpdateCheckInfo CheckForDetailedUpdate()
12 {
13 Thread.Sleep(5000);
14 return null;
15 }
16
17 public UpdateCheckInfo CheckForDetailedUpdate(bool persistUpdateCheckResult)
18 {
19 throw new NotImplementedException();
20 }
21
22 public bool CheckForUpdate()
23 {
24 return false;
25 }
26
27 public bool CheckForUpdate(bool persistUpdateCheckResult)
28 {
29 return false;
30 }
31
32 public void CheckForUpdateAsync()
33 {
34 }
35
36 public void CheckForUpdateAsyncCancel()
37 {
38 }
39
40 public bool Update()
41 {
42 return false;
43 }
44
45 public void UpdateAsync()
46 {
47 }
48
49 public void UpdateAsyncCancel()
50 {
51 }
52
53 public void DownloadFileGroup(string groupName)
54 {
55 }
56
57 public void DownloadFileGroupAsync(string groupName)
58 {
59 }
60
61 public void DownloadFileGroupAsync(string groupName, object userState)
62 {
63 }
64
65 public bool IsFileGroupDownloaded(string groupName)
66 {
67 return false;
68 }
69
70 public void DownloadFileGroupAsyncCancel(string groupName)
71 {
72 }
73
74 public Version CurrentVersion
75 {
76 get { throw new NotImplementedException(); }
77 }
78
79 public Version UpdatedVersion
80 {
81 get { throw new NotImplementedException(); }
82 }
83
84 public string UpdatedApplicationFullName
85 {
86 get { throw new NotImplementedException(); }
87 }
88
89 public DateTime TimeOfLastUpdateCheck
90 {
91 get { throw new NotImplementedException(); }
92 }
93
94 public Uri UpdateLocation
95 {
96 get { throw new NotImplementedException(); }
97 }
98
99 public Uri ActivationUri
100 {
101 get { throw new NotImplementedException(); }
102 }
103
104 public string DataDirectory
105 {
106 get { throw new NotImplementedException(); }
107 }
108
109 public bool IsFirstRun
110 {
111 get { throw new NotImplementedException(); }
112 }
113
114 //public event DeploymentProgressChangedEventHandler CheckForUpdateProgressChanged;
115 //public event CheckForUpdateCompletedEventHandler CheckForUpdateCompleted;
116 public event DeploymentProgressChangedEventHandler UpdateProgressChanged;
117 public event AsyncCompletedEventHandler UpdateCompleted;
118 //public event DeploymentProgressChangedEventHandler DownloadFileGroupProgressChanged;
119 //public event DownloadFileGroupCompletedEventHandler DownloadFileGroupCompleted;
120 }
121}