ConfigurationWingetDscModuleUnitValidation.h (788B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 #pragma once 4 #include <map> 5 #include <string> 6 7 namespace winrt::Microsoft::Management::Configuration 8 { 9 struct ConfigurationUnit; 10 } 11 12 namespace AppInstaller::CLI::Execution 13 { 14 struct Context; 15 } 16 17 namespace AppInstaller::CLI::Configuration 18 { 19 using namespace std::string_view_literals; 20 21 struct WingetDscModuleUnitValidator 22 { 23 bool ValidateConfigurationSetUnit(AppInstaller::CLI::Execution::Context& context, const winrt::Microsoft::Management::Configuration::ConfigurationUnit& unit); 24 25 std::string_view ModuleName() { return "Microsoft.WinGet.DSC"sv; }; 26 27 private: 28 std::map<std::string, std::string> m_dependenciesSourceAndUnitIdMap; 29 }; 30 }