개정판 2decfbdf
DataBaseItemsModel 수정
Change-Id: I96830cad0b3990bb84346f438ba04e20d55ec26c
ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/AliveViewModel.cs | ||
---|---|---|
12 | 12 |
|
13 | 13 |
namespace Markus.Service.StationController.ViewModel |
14 | 14 |
{ |
15 |
public class AliveViewModel :Mvvm.ToolKit.ViewModelBase |
|
15 |
public class AliveViewModel : Mvvm.ToolKit.ViewModelBase
|
|
16 | 16 |
{ |
17 | 17 |
BackgroundWorker backgroundWorker; |
18 | 18 |
|
... | ... | |
47 | 47 |
get => connectionLog; |
48 | 48 |
set |
49 | 49 |
{ |
50 |
if(connectionLog != value) |
|
50 |
if (connectionLog != value)
|
|
51 | 51 |
{ |
52 | 52 |
connectionLog = value; |
53 | 53 |
OnPropertyChanged(() => ConnectionLog); |
... | ... | |
74 | 74 |
{ |
75 | 75 |
while (IsAcitve) |
76 | 76 |
{ |
77 |
System.Threading.Thread.Sleep(new TimeSpan(0,0,3)); |
|
78 | 77 |
|
79 | 78 |
if (!IsLoading) |
80 | 79 |
{ |
... | ... | |
124 | 123 |
} |
125 | 124 |
} |
126 | 125 |
|
127 |
|
|
126 |
|
|
128 | 127 |
|
129 | 128 |
private void ItemsUpdate(List<ConvertItem> newitems) |
130 | 129 |
{ |
... | ... | |
181 | 180 |
} |
182 | 181 |
} |
183 | 182 |
|
184 |
private void LogWrite(string log,bool IsError) |
|
183 |
private void LogWrite(string log, bool IsError)
|
|
185 | 184 |
{ |
186 |
if(IsError) |
|
185 |
if (IsError)
|
|
187 | 186 |
{ |
188 | 187 |
System.Diagnostics.Trace.Fail(log); |
189 | 188 |
} |
... | ... | |
202 | 201 |
{ |
203 | 202 |
using (System.Net.Http.HttpClient Client = new System.Net.Http.HttpClient()) |
204 | 203 |
{ |
205 |
Client.Timeout = new TimeSpan(0, 0,60); |
|
206 |
|
|
204 |
Client.Timeout = new TimeSpan(0, 0, 60);
|
|
205 |
|
|
207 | 206 |
var message = await Client.GetAsync(uri); |
208 | 207 |
|
209 | 208 |
System.Net.HttpStatusCode StatusCode = message.StatusCode; |
내보내기 Unified diff