| 1 | /*++ |
| 2 | |
| 3 | Copyright (c) Microsoft. All rights reserved. |
| 4 | |
| 5 | Module Name: |
| 6 | |
| 7 | WslcService.h |
| 8 | |
| 9 | Abstract: |
| 10 | |
| 11 | This file contains the definition of the WinRT wrapper for the WSLC SDK WslcService class. |
| 12 | |
| 13 | --*/ |
| 14 | |
| 15 | #pragma once |
| 16 | #include "Microsoft.WSL.Containers.WslcService.g.h" |
| 17 | #include "Helpers.h" |
| 18 | |
| 19 | namespace winrt::Microsoft::WSL::Containers::implementation { |
| 20 | struct WslcService |
| 21 | { |
| 22 | WslcService() = default; |
| 23 | |
| 24 | static winrt::Windows::Foundation::Collections::IVectorView<winrt::Microsoft::WSL::Containers::Component> GetMissingComponents(); |
| 25 | static winrt::Microsoft::WSL::Containers::ServiceVersion GetVersion(); |
| 26 | static void InstallWithDependencies(winrt::Microsoft::WSL::Containers::InstallOptions options); |
| 27 | static winrt::Windows::Foundation::IAsyncActionWithProgress<winrt::Microsoft::WSL::Containers::InstallProgress> InstallWithDependenciesAsync( |
| 28 | winrt::Microsoft::WSL::Containers::InstallOptions options); |
| 29 | }; |
| 30 | } // namespace winrt::Microsoft::WSL::Containers::implementation |
| 31 | namespace winrt::Microsoft::WSL::Containers::factory_implementation { |
| 32 | struct WslcService : WslcServiceT<WslcService, implementation::WslcService> |
| 33 | { |
| 34 | }; |
| 35 | } // namespace winrt::Microsoft::WSL::Containers::factory_implementation |
| 36 | |
| 37 | DEFINE_TYPE_HELPERS(WslcService); |