-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppService.cpp
More file actions
53 lines (42 loc) · 1.22 KB
/
AppService.cpp
File metadata and controls
53 lines (42 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include "stdafx.h"
#include "AppService.h"
#if __has_include("AppService.g.cpp")
#include "AppService.g.cpp"
#endif
using namespace winrt;
using namespace Microsoft::UI::Xaml;
namespace winrt::SuiteInstaller::implementation
{
AppService::AppService()
{
}
SuiteInstaller::AppService AppService::GetInstance()
{
auto fooFactory = winrt::make_self<factory_implementation::AppService>();
return fooFactory->Singleton();
}
SuiteInstaller::Context AppService::RuntimeContext()
{
if (!mRuntimeContext)
mRuntimeContext = make<SuiteInstaller::implementation::Context>();
return mRuntimeContext;
}
SuiteInstaller::InstallModel AppService::InstallingPrereqs()
{
if (!mInstallingPrereqs)
mInstallingPrereqs = make<SuiteInstaller::implementation::InstallModel>();
return mInstallingPrereqs;
}
} // namespace winrt::SuiteInstaller::implementation
namespace winrt::SuiteInstaller::factory_implementation
{
SuiteInstaller::AppService winrt::SuiteInstaller::factory_implementation::AppService::Singleton()
{
slim_lock_guard lock{ m_lock };
if (!mSingleton)
{
mSingleton = winrt::make<SuiteInstaller::implementation::AppService>();
}
return mSingleton;
}
} // namespace winrt::SuiteInstaller::factory_implementation