mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-15 06:09:09 +00:00
37 lines
904 B
C#
37 lines
904 B
C#
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
using System.Management.Automation.Internal;
|
|
|
|
namespace System.Management.Automation
|
|
{
|
|
/// <summary>
|
|
/// Derives InternalCommand for Native Commands.
|
|
/// </summary>
|
|
internal sealed class NativeCommand : InternalCommand
|
|
{
|
|
private NativeCommandProcessor _myCommandProcessor;
|
|
|
|
internal NativeCommandProcessor MyCommandProcessor
|
|
{
|
|
get { return _myCommandProcessor; }
|
|
|
|
set { _myCommandProcessor = value; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Implement the stop functionality for native commands...
|
|
/// </summary>
|
|
internal override void DoStopProcessing()
|
|
{
|
|
try
|
|
{
|
|
_myCommandProcessor?.StopProcessing();
|
|
}
|
|
catch (Exception)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
}
|