using System.Application.Services;
using System.Diagnostics;
namespace System.Application.Extensions
{
///
/// 为 类型提供扩展方法
///
public static class ProcessExtensions
{
///
public static string GetCommandLineArgs(this Process process)
{
try
{
var p = DI.Get();
return p.GetCommandLineArgs(process);
}
catch (InvalidOperationException)
{
// 进程已退出。
return string.Empty;
}
}
}
}