Team Ai
Datasetpublic

MegaBites-AI/Windows-powershell

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes308downloads
NativeCommand.cs37 linesDownload Raw Back to engine
1// Copyright (c) Microsoft Corporation.2// Licensed under the MIT License.3 4using System.Management.Automation.Internal;5 6namespace System.Management.Automation7{8    /// <summary>9    /// Derives InternalCommand for Native Commands.10    /// </summary>11    internal sealed class NativeCommand : InternalCommand12    {13        private NativeCommandProcessor _myCommandProcessor;14 15        internal NativeCommandProcessor MyCommandProcessor16        {17            get { return _myCommandProcessor; }18 19            set { _myCommandProcessor = value; }20        }21 22        /// <summary>23        /// Implement the stop functionality for native commands...24        /// </summary>25        internal override void DoStopProcessing()26        {27            try28            {29                _myCommandProcessor?.StopProcessing();30            }31            catch (Exception)32            {33            }34        }35    }36}37