DreamineVMS
1.0.0.0
Windows PC의 RTSP·USB 카메라 영상을 HLS로 변환해 원격 CCTV Viewer에 전달하는 데스크톱 에이전트입니다.
Toggle main menu visibility
로딩중...
검색중...
일치하는것 없음
App.xaml.cs
이 파일의 문서화 페이지로 가기
1
using
Dreamine.Hybrid.Wpf.Interfaces;
2
using
DreamineVMS.ViewModels
;
3
using
DreamineVMS.Views
;
4
using
Microsoft.Extensions.DependencyInjection;
5
using
System;
6
using
System.Windows;
7
8
namespace
DreamineVMS
;
9
18
public
partial class
App
: Application, IDreamineServiceProviderAware
19
{
28
public
static
IServiceProvider?
ServiceProvider
{
get
;
private
set
; }
29
54
public
void
SetServiceProvider
(IServiceProvider serviceProvider)
55
{
56
ServiceProvider
= serviceProvider ??
throw
new
ArgumentNullException(nameof(serviceProvider));
57
}
58
83
protected
override
void
OnStartup
(StartupEventArgs e)
84
{
85
base.OnStartup(e);
86
87
DispatcherUnhandledException += (_, args) =>
88
{
89
System.Windows.MessageBox.Show(
90
args.Exception.ToString(),
91
"오류 발생 — DreamineVMS"
,
92
System.Windows.MessageBoxButton.OK,
93
System.Windows.MessageBoxImage.Error);
94
args.Handled =
true
;
95
};
96
97
AppDomain.CurrentDomain.UnhandledException += (_, args) =>
98
{
99
System.Windows.MessageBox.Show(
100
args.ExceptionObject?.ToString() ??
"알 수 없는 오류"
,
101
"치명적 오류 — DreamineVMS"
,
102
System.Windows.MessageBoxButton.OK,
103
System.Windows.MessageBoxImage.Error);
104
};
105
106
if
(
ServiceProvider
is
null
)
107
{
108
throw
new
InvalidOperationException(
"ServiceProvider initialization failed."
);
109
}
110
111
MainWindowViewModel
viewModel =
ServiceProvider
.GetRequiredService<
MainWindowViewModel
>();
112
MainWindow
window =
ServiceProvider
.GetRequiredService<
MainWindow
>();
113
window.DataContext = viewModel;
114
115
MainWindow
= window;
116
window.Show();
117
}
118
143
protected
override
void
OnExit
(ExitEventArgs e)
144
{
145
base.OnExit(e);
146
}
147
}
DreamineVMS
Definition
App.xaml.cs:8
DreamineVMS.ViewModels
Definition
AgentSettingsViewModel.cs:7
DreamineVMS.Views
Definition
AgentStatusConverters.cs:5
DreamineVMS.App
Definition
App.xaml.cs:19
DreamineVMS.App.ServiceProvider
static ? IServiceProvider ServiceProvider
Definition
App.xaml.cs:28
DreamineVMS.App.SetServiceProvider
void SetServiceProvider(IServiceProvider serviceProvider)
Definition
App.xaml.cs:54
DreamineVMS.App.OnStartup
override void OnStartup(StartupEventArgs e)
Definition
App.xaml.cs:83
DreamineVMS.App.OnExit
override void OnExit(ExitEventArgs e)
Definition
App.xaml.cs:143
DreamineVMS.ViewModels.MainWindowViewModel
Definition
MainWindowViewModel.cs:32
DreamineVMS.Views.MainWindow
Definition
MainWindow.xaml.cs:28
App.xaml.cs
다음에 의해 생성됨 :
1.17.0