master
cpp 41 lines 907 Bytes
Raw
1 /*++
2
3 Copyright (c) Microsoft. All rights reserved.
4
5 Module Name:
6
7 InstallOptions.cpp
8
9 Abstract:
10
11 This file contains the implementation of the WinRT wrapper for the WSLC SDK InstallOptions class.
12
13 --*/
14
15 #include "precomp.h"
16 #include "InstallOptions.h"
17 #include "Microsoft.WSL.Containers.InstallOptions.g.cpp"
18
19 namespace winrt::Microsoft::WSL::Containers::implementation {
20
21 winrt::Windows::Foundation::Collections::IVectorView<winrt::Microsoft::WSL::Containers::Component> InstallOptions::Components()
22 {
23 return m_components;
24 }
25
26 void InstallOptions::Components(winrt::Windows::Foundation::Collections::IVectorView<winrt::Microsoft::WSL::Containers::Component> value)
27 {
28 m_components = std::move(value);
29 }
30
31 bool InstallOptions::Repair()
32 {
33 return m_repair;
34 }
35
36 void InstallOptions::Repair(bool value)
37 {
38 m_repair = value;
39 }
40
41 } // namespace winrt::Microsoft::WSL::Containers::implementation