Files
PowerShell/src/System.Management.Automation/engine/NativeCommand.cs
T

35 lines
974 B
C#
Raw Normal View History

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
2016-07-29 13:02:49 -07:00
using System.Management.Automation.Internal;
namespace System.Management.Automation
{
/// <summary>
/// Derives InternalCommand for Native Commands
/// </summary>
internal sealed class NativeCommand : InternalCommand
{
2016-07-29 13:02:49 -07:00
private NativeCommandProcessor _myCommandProcessor;
internal NativeCommandProcessor MyCommandProcessor
{
2016-07-29 13:02:49 -07:00
get { return _myCommandProcessor; }
set { _myCommandProcessor = value; }
}
/// <summary>
/// Implement the stop functionality for native commands...
/// </summary>
internal override void DoStopProcessing()
{
try
{
2016-07-29 13:02:49 -07:00
if (_myCommandProcessor != null)
_myCommandProcessor.StopProcessing();
}
catch (Exception)
{
}
}
}
}