Files
PowerShell-PowerShell/src/System.Management.Automation/engine/NativeCommand.cs
T
PowerShell Team 60b3b304f2 Move files from psl-monad submodule to super-project
This commit uses psl-monad branch source-depot 7209cb9
And corresponds to [SD:688741]
2016-03-30 17:16:23 -07:00

42 lines
1.3 KiB
C#

/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
using System;
using System.Management.Automation;
using System.Diagnostics;
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
{
if (myCommandProcessor != null)
myCommandProcessor.StopProcessing();
}
catch (Exception e)
{
CommandProcessorBase.CheckForSevereException(e);
// Ignore exceptions here...
;
}
}
}
}