Dreamine.PLC.Wpf 1.0.1
Dreamine.PLC.Wpf 산업 자동화 및 I/O 기능을 제공합니다.
로딩중...
검색중...
일치하는것 없음
Dreamine.PLC.Wpf.Services.PlcMonitorService 클래스 참조sealed

더 자세히 ...

Dreamine.PLC.Wpf.Services.PlcMonitorService에 대한 상속 다이어그램 :
Dreamine.PLC.Wpf.Services.PlcMonitorService에 대한 협력 다이어그램:

Public 멤버 함수

 PlcMonitorService ()
 PlcMonitorService (PlcMonitorViewModel viewModel)
void SetClient (IPlcClient client, string channelName)
void AppendLog (string operation, string address, string values, bool isSuccess, string message)
ValueTask DisposeAsync ()

속성

PlcMonitorViewModel ViewModel [get]

상세한 설명

기본 PLC 모니터 서비스 구현을 제공합니다.

PlcMonitorService.cs 파일의 14 번째 라인에서 정의되었습니다.

생성자 & 소멸자 문서화

◆ PlcMonitorService() [1/2]

Dreamine.PLC.Wpf.Services.PlcMonitorService.PlcMonitorService ( )
inline

새 ViewModel을 사용해 T:Dreamine.PLC.Wpf.Services.PlcMonitorService 클래스의 새 인스턴스를 초기화합니다.

PlcMonitorService.cs 파일의 24 번째 라인에서 정의되었습니다.

25 : this(new PlcMonitorViewModel())
26 {
27 }

◆ PlcMonitorService() [2/2]

Dreamine.PLC.Wpf.Services.PlcMonitorService.PlcMonitorService ( PlcMonitorViewModel viewModel)
inline

지정한 ViewModel을 사용해 T:Dreamine.PLC.Wpf.Services.PlcMonitorService 클래스의 새 인스턴스를 초기화합니다.

매개변수
viewModel서비스에서 노출할 모니터 ViewModel입니다.
예외
ArgumentNullExceptionviewModelnull일 때 발생합니다.

PlcMonitorService.cs 파일의 53 번째 라인에서 정의되었습니다.

54 {
55 ViewModel = viewModel ?? throw new ArgumentNullException(nameof(viewModel));
56 }

다음을 참조함 : ViewModel.

멤버 함수 문서화

◆ AppendLog()

void Dreamine.PLC.Wpf.Services.PlcMonitorService.AppendLog ( string operation,
string address,
string values,
bool isSuccess,
string message )
inline

ViewModel의 작업 로그에 진단 항목을 추가합니다.

매개변수
operation작업 이름입니다.
addressPLC 주소 텍스트입니다.
values작업 값 텍스트입니다.
isSuccess성공 여부입니다.
message진단 메시지입니다.

Dreamine.PLC.Wpf.Services.IPlcMonitorService를 구현.

PlcMonitorService.cs 파일의 153 번째 라인에서 정의되었습니다.

154 {
155 ViewModel.AppendLog(operation, address, values, isSuccess, message);
156 }

다음을 참조함 : ViewModel.

◆ DisposeAsync()

ValueTask Dreamine.PLC.Wpf.Services.PlcMonitorService.DisposeAsync ( )
inline

소유한 ViewModel을 비동기로 정리합니다.

반환값
ViewModel의 비동기 정리 작업입니다.

PlcMonitorService.cs 파일의 174 번째 라인에서 정의되었습니다.

175 {
176 return ViewModel.DisposeAsync();
177 }

다음을 참조함 : ViewModel.

◆ SetClient()

void Dreamine.PLC.Wpf.Services.PlcMonitorService.SetClient ( IPlcClient client,
string channelName )
inline

ViewModel이 모니터링할 PLC 클라이언트를 교체합니다.

매개변수
client모니터링할 PLC 클라이언트입니다.
channelName표시할 채널 이름입니다.
예외
ArgumentNullExceptionclientnull일 때 발생합니다.

Dreamine.PLC.Wpf.Services.IPlcMonitorService를 구현.

PlcMonitorService.cs 파일의 100 번째 라인에서 정의되었습니다.

101 {
102 ViewModel.SetClient(client, channelName);
103 }

다음을 참조함 : ViewModel.

속성 문서화

◆ ViewModel

PlcMonitorViewModel Dreamine.PLC.Wpf.Services.PlcMonitorService.ViewModel
get

뷰에 노출되는 PLC 모니터 ViewModel을 가져옵니다.

Dreamine.PLC.Wpf.Services.IPlcMonitorService를 구현.

PlcMonitorService.cs 파일의 66 번째 라인에서 정의되었습니다.

66{ get; }

다음에 의해서 참조됨 : AppendLog(), DisposeAsync(), PlcMonitorService(), SetClient().


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: