Dreamine.PLC.Wpf 1.0.1
Dreamine.PLC.Wpf 산업 자동화 및 I/O 기능을 제공합니다.
로딩중...
검색중...
일치하는것 없음
PlcMonitorService.cs
이 파일의 문서화 페이지로 가기
1using Dreamine.PLC.Abstractions.Clients;
3
5
14public sealed class PlcMonitorService : IPlcMonitorService, IAsyncDisposable
15{
25 : this(new PlcMonitorViewModel())
26 {
27 }
28
54 {
55 ViewModel = viewModel ?? throw new ArgumentNullException(nameof(viewModel));
56 }
57
67
100 public void SetClient(IPlcClient client, string channelName)
101 {
102 ViewModel.SetClient(client, channelName);
103 }
104
153 public void AppendLog(string operation, string address, string values, bool isSuccess, string message)
154 {
155 ViewModel.AppendLog(operation, address, values, isSuccess, message);
156 }
157
174 public ValueTask DisposeAsync()
175 {
176 return ViewModel.DisposeAsync();
177 }
178}
void AppendLog(string operation, string address, string values, bool isSuccess, string message)
void SetClient(IPlcClient client, string channelName)
PlcMonitorService(PlcMonitorViewModel viewModel)