Files
PowerShell/src/System.Management.Automation/engine/NativeCommand.cs
T
Jason Shirk (POWERSHELL) 386b4f37f4 Remove CheckForSevereException and private FailFast
Our private implementation of FailFast was likely introduced
when each individual application needed it's own code to
get Watson reports. The CLR takes care of this for us now,
so we don't need our implementation.

Our method CheckForSevereException was also introduced in
the early days of the CLR - the exceptions it was checking
for aren't actually raised the CLR anymore, they just FailFast.
I removed them as there is a tiny bit of overhead (in code size)
and also in the generated code, e.g. dynamic sites called the method.
2016-12-01 13:46:56 -08:00

37 lines
1.1 KiB
C#

/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
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)
{
}
}
}
}