mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
This commit uses psl-monad branch source-depot 7209cb9 And corresponds to [SD:688741]
42 lines
1.3 KiB
C#
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...
|
|
;
|
|
}
|
|
}
|
|
}
|
|
}
|