|
DreamineVMS 1.0.0.0
Windows PC의 RTSP·USB 카메라 영상을 HLS로 변환해 원격 CCTV Viewer에 전달하는 데스크톱 에이전트입니다.
|


Public 멤버 함수 | |
| VmsDashboardStateService (IVmsCameraRepository repository, ICameraRuntimeStateService runtimeState, IHybridStateStore< VmsDashboardState > stateStore) | |
| void | Start () |
| void | Refresh (string? lastEvent=null) |
| void | Dispose () |
Private 멤버 함수 | |
| void | OnRuntimeStateChanged (object? sender, CameraRuntimeState e) |
Private 속성 | |
| readonly IVmsCameraRepository | _repository |
| readonly ICameraRuntimeStateService | _runtimeState |
| readonly IHybridStateStore< VmsDashboardState > | _stateStore |
| readonly object | _gate = new() |
| bool | _isStarted |
| bool | _isDisposed |
카메라 Repository / RuntimeState 변경을 구독하여 VmsDashboardState를 자동 갱신하는 도메인 서비스입니다.
이 서비스는 UI 계층(WPF ViewModel, Blazor ViewModel)에 의존하지 않습니다. WPF Window가 떠 있는지와 무관하게 상태 스토어가 항상 최신을 유지합니다.
VmsDashboardStateService.cs 파일의 25 번째 라인에서 정의되었습니다.
|
inline |
VmsDashboardStateService 클래스의 새 인스턴스를 초기화합니다.
| repository | 카메라 저장소입니다. |
| runtimeState | 카메라 런타임 상태 서비스입니다. |
| stateStore | 대시보드 상태 저장소입니다. |
| ArgumentNullException | 필수 입력 인자 중 하나가 null인 경우 발생합니다. |
VmsDashboardStateService.cs 파일의 122 번째 라인에서 정의되었습니다.
다음을 참조함 : _repository, _runtimeState, _stateStore.
|
inline |
이 인스턴스가 소유한 리소스를 해제합니다.
VmsDashboardStateService.cs 파일의 206 번째 라인에서 정의되었습니다.
다음을 참조함 : _gate, _isDisposed, _isStarted, OnRuntimeStateChanged().

|
inlineprivate |
Runtime State Changed 이벤트 또는 상태 변경을 처리합니다.
| sender | 이벤트를 발생시킨 객체입니다. |
| e | 이벤트와 관련된 데이터를 포함합니다. |
VmsDashboardStateService.cs 파일의 249 번째 라인에서 정의되었습니다.
다음을 참조함 : DreamineVMS.Models.CameraRuntimeState.LastMessage, Refresh().
다음에 의해서 참조됨 : Dispose(), Start().


|
inline |
Refresh 작업을 수행합니다.
| lastEvent | last Event에 사용할 string? 값입니다. |
DreamineVMS.Services.Dashboard.IVmsDashboardStateService를 구현.
VmsDashboardStateService.cs 파일의 173 번째 라인에서 정의되었습니다.
다음을 참조함 : _isDisposed, _repository, _runtimeState, _stateStore, DreamineVMS.States.VmsDashboardState.LastEvent.
다음에 의해서 참조됨 : OnRuntimeStateChanged(), Start().

|
inline |
Start 작업을 수행합니다.
DreamineVMS.Services.Dashboard.IVmsDashboardStateService를 구현.
VmsDashboardStateService.cs 파일의 140 번째 라인에서 정의되었습니다.
다음을 참조함 : _gate, _isDisposed, _isStarted, OnRuntimeStateChanged(), Refresh().

|
private |
gate 값을 보관합니다.
VmsDashboardStateService.cs 파일의 62 번째 라인에서 정의되었습니다.
|
private |
is Disposed 값을 보관합니다.
VmsDashboardStateService.cs 파일의 80 번째 라인에서 정의되었습니다.
|
private |
is Started 값을 보관합니다.
VmsDashboardStateService.cs 파일의 71 번째 라인에서 정의되었습니다.
|
private |
repository 값을 보관합니다.
VmsDashboardStateService.cs 파일의 35 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Refresh(), VmsDashboardStateService().
|
private |
runtime State 값을 보관합니다.
VmsDashboardStateService.cs 파일의 44 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Refresh(), VmsDashboardStateService().
|
private |
state Store 값을 보관합니다.
VmsDashboardStateService.cs 파일의 53 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Refresh(), VmsDashboardStateService().