Windows-powershell / PowerShell-master /src /System.Management.Automation /engine /Subsystem /DscSubsystem /ICrossPlatformDsc.cs
Download PowerShell-master/src/System.Management.Automation/engine/Subsystem/DscSubsystem/ICrossPlatformDsc.cs from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 1.52 kB
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/System.Management.Automation/engine/Subsystem/DscSubsystem/ICrossPlatformDsc.cs
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/src/System.Management.Automation/engine/Subsystem/DscSubsystem/ICrossPlatformDsc.cs
-
curl -L -o ICrossPlatformDsc.cs https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/System.Management.Automation/engine/Subsystem/DscSubsystem/ICrossPlatformDsc.cs
1.52 kB
| // Copyright (c) Microsoft Corporation. | |
| // Licensed under the MIT License. | |
| using System; | |
| using System.Collections.ObjectModel; | |
| using System.Collections.Generic; | |
| using System.Management.Automation.Language; | |
| namespace System.Management.Automation.Subsystem.DSC | |
| { | |
| /// <summary> | |
| /// Interface for implementing a cross platform desired state configuration component. | |
| /// </summary> | |
| public interface ICrossPlatformDsc : ISubsystem | |
| { | |
| /// <summary> | |
| /// Default implementation. No function is required for this subsystem. | |
| /// </summary> | |
| Dictionary<string, string>? ISubsystem.FunctionsToDefine => null; | |
| /// <summary> | |
| /// DSC initializer function. | |
| /// </summary> | |
| void LoadDefaultKeywords(Collection<Exception> errors); | |
| /// <summary> | |
| /// Clear internal class caches. | |
| /// </summary> | |
| void ClearCache(); | |
| /// <summary> | |
| /// Returns resource usage string. | |
| /// </summary> | |
| string GetDSCResourceUsageString(DynamicKeyword keyword); | |
| /// <summary> | |
| /// Checks if a string is one of dynamic keywords that can be used in both configuration and meta configuration. | |
| /// </summary> | |
| bool IsSystemResourceName(string name); | |
| /// <summary> | |
| /// Checks if a string matches default module name used for meta configuration resources. | |
| /// </summary> | |
| bool IsDefaultModuleNameForMetaConfigResource(string name); | |
| } | |
| } | |