|
Dreamine.Communication.Wpf 1.0.2
Dreamine.Communication.Wpf 통신 기능과 관련 API를 제공합니다.
|


Public 멤버 함수 | |
| CommunicationMonitorViewModel () | |
| void | AddChannel (string name, TransportKind kind, string description="") |
| void | UpdateChannelState (string name, ConnectionState state) |
| void | UpdateChannelDescription (string name, string description) |
| void | AddSendLog (string channelName, TransportKind kind, MessageEnvelope message) |
| void | AddReceiveLog (string channelName, TransportKind kind, MessageEnvelope message) |
| void | ClearLogs () |
속성 | |
| ObservableCollection< CommunicationChannelViewItem > | Channels = new() [get] |
| ObservableCollection< CommunicationMessageLogItem > | Logs = new() [get] |
| CommunicationChannelViewItem? | SelectedChannel [get, set] |
| ICommand | ClearLogsCommand [get] |
이벤트 | |
| PropertyChangedEventHandler? | PropertyChanged |
Private 멤버 함수 | |
| void | AddMessageLog (string channelName, TransportKind kind, string direction, MessageEnvelope message) |
| void | SetProperty< T > (ref T storage, T value, [CallerMemberName] string? propertyName=null) |
정적 Private 멤버 함수 | |
| static string | CreatePayloadPreview (byte[] payload) |
Private 속성 | |
| CommunicationChannelViewItem? | _selectedChannel |
통신 채널 상태와 송수신 메시지 로그를 WPF 바인딩에 제공하는 ViewModel입니다.
CommunicationMonitorViewModel.cs 파일의 21 번째 라인에서 정의되었습니다.
|
inline |
로그 삭제 명령과 빈 채널·로그 컬렉션으로 ViewModel을 초기화합니다.
CommunicationMonitorViewModel.cs 파일의 41 번째 라인에서 정의되었습니다.
다음을 참조함 : ClearLogs(), ClearLogsCommand.

|
inline |
같은 이름이 없는 경우 새 통신 채널을 추가합니다.
| name | 고유한 채널 이름입니다. |
| kind | 채널 전송 방식입니다. |
| description | 선택적 채널 설명입니다. |
| ArgumentException | 이름이 비어 있는 경우 발생합니다. |
CommunicationMonitorViewModel.cs 파일의 140 번째 라인에서 정의되었습니다.
다음을 참조함 : Channels.
|
inlineprivate |
메시지 메타데이터와 UTF-8 미리보기를 생성해 로그 컬렉션 앞에 삽입합니다.
| channelName | 채널 이름입니다. |
| kind | 전송 방식입니다. |
| direction | 송수신 방향 표시입니다. |
| message | 로그로 변환할 메시지입니다. |
CommunicationMonitorViewModel.cs 파일의 361 번째 라인에서 정의되었습니다.
다음을 참조함 : CreatePayloadPreview(), Logs.
다음에 의해서 참조됨 : AddReceiveLog(), AddSendLog().


|
inline |
수신 방향의 메시지 로그를 컬렉션 앞에 추가합니다.
| channelName | 수신 채널 이름입니다. |
| kind | 전송 방식입니다. |
| message | 기록할 수신 메시지입니다. |
CommunicationMonitorViewModel.cs 파일의 303 번째 라인에서 정의되었습니다.
다음을 참조함 : AddMessageLog().

|
inline |
송신 방향의 메시지 로그를 컬렉션 앞에 추가합니다.
| channelName | 송신 채널 이름입니다. |
| kind | 전송 방식입니다. |
| message | 기록할 송신 메시지입니다. |
CommunicationMonitorViewModel.cs 파일의 266 번째 라인에서 정의되었습니다.
다음을 참조함 : AddMessageLog().

|
inline |
메시지 로그 컬렉션의 모든 항목을 삭제합니다.
CommunicationMonitorViewModel.cs 파일의 316 번째 라인에서 정의되었습니다.
다음을 참조함 : Logs.
다음에 의해서 참조됨 : CommunicationMonitorViewModel().

|
inlinestaticprivate |
UTF-8 페이로드를 최대 120자로 잘라 화면 표시용 미리보기를 생성합니다.
| payload | 미리보기로 변환할 바이트입니다. |
CommunicationMonitorViewModel.cs 파일의 406 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : AddMessageLog().

|
inlineprivate |
값이 변경된 경우에만 저장소를 갱신하고 속성 변경 이벤트를 발생시킵니다.
| T | 속성 값 형식입니다. |
| storage | 후방 저장소입니다. |
| value | 새 값입니다. |
| propertyName | 변경된 속성 이름입니다. |
CommunicationMonitorViewModel.cs 파일의 463 번째 라인에서 정의되었습니다.
다음을 참조함 : PropertyChanged.
|
inline |
지정한 이름의 채널이 있으면 설명을 갱신합니다.
| name | 찾을 채널 이름입니다. |
| description | 설정할 설명이며 null이면 빈 문자열입니다. |
CommunicationMonitorViewModel.cs 파일의 220 번째 라인에서 정의되었습니다.
다음을 참조함 : Channels.
|
inline |
지정한 이름의 채널이 있으면 연결 상태를 갱신합니다.
| name | 찾을 채널 이름입니다. |
| state | 설정할 연결 상태입니다. |
CommunicationMonitorViewModel.cs 파일의 182 번째 라인에서 정의되었습니다.
다음을 참조함 : Channels.
|
private |
selected Channel 값을 보관합니다.
CommunicationMonitorViewModel.cs 파일의 31 번째 라인에서 정의되었습니다.
|
get |
화면에 표시할 통신 채널 컬렉션을 가져옵니다.
CommunicationMonitorViewModel.cs 파일의 64 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : AddChannel(), UpdateChannelDescription(), UpdateChannelState().
|
get |
모든 메시지 로그를 삭제하는 명령을 가져옵니다.
CommunicationMonitorViewModel.cs 파일의 98 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : CommunicationMonitorViewModel().
|
get |
최신 항목이 앞에 배치되는 메시지 로그 컬렉션을 가져옵니다.
CommunicationMonitorViewModel.cs 파일의 74 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : AddMessageLog(), ClearLogs().
|
getset |
현재 선택된 통신 채널을 가져오거나 설정합니다.
CommunicationMonitorViewModel.cs 파일의 84 번째 라인에서 정의되었습니다.
| PropertyChangedEventHandler? Dreamine.Communication.Wpf.ViewModels.CommunicationMonitorViewModel.PropertyChanged |
바인딩된 속성 값이 변경될 때 발생합니다.
CommunicationMonitorViewModel.cs 파일의 54 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : SetProperty< T >().