Show / Hide Table of Contents

Class ProcessStarterFactory

Factory service for process starters.

Inheritance
System.Object
ProcessStarterFactory
Implements
IProcessStarterFactory
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Diagnostics
Assembly: Kephas.Core.dll
Syntax
[OverridePriority(Priority.Low)]
public class ProcessStarterFactory : IProcessStarterFactory

Constructors

| Improve this Doc View Source

ProcessStarterFactory(IAppRuntime)

Initializes a new instance of the ProcessStarterFactory class.

Declaration
public ProcessStarterFactory(IAppRuntime appRuntime)
Parameters
Type Name Description
IAppRuntime appRuntime

The application runtime.

Methods

| Improve this Doc View Source

CreateProcessStarter()

Creates the process launcher.

Declaration
public IProcessStarter CreateProcessStarter()
Returns
Type Description
IProcessStarter

The new ProcessStarter.

| Improve this Doc View Source

GetProcessStartInfo()

Gets the process start information.

Declaration
public ProcessStartInfo GetProcessStartInfo()
Returns
Type Description
System.Diagnostics.ProcessStartInfo

The process start information.

| Improve this Doc View Source

WithArguments(String[])

Sets the process arguments.

Declaration
public IProcessStarterFactory WithArguments(params string[] args)
Parameters
Type Name Description
System.String[] args

A variable-length parameters list containing arguments.

Returns
Type Description
IProcessStarterFactory

This IProcessStarterFactory.

| Improve this Doc View Source

WithEnvironmentVariable(String, String)

Sets an environment variable for the process.

Declaration
public IProcessStarterFactory WithEnvironmentVariable(string name, string value)
Parameters
Type Name Description
System.String name

The variable name.

System.String value

The variable value.

Returns
Type Description
IProcessStarterFactory

This IProcessStarterFactory.

| Improve this Doc View Source

WithManagedExecutable(String)

Sets the executable file as a managed process.

Declaration
public IProcessStarterFactory WithManagedExecutable(string executableFile)
Parameters
Type Name Description
System.String executableFile

Full pathname of the executable file.

Returns
Type Description
IProcessStarterFactory

This IProcessStarterFactory.

| Improve this Doc View Source

WithNativeExecutable(String)

Sets the executable file as an operating system native process.

Declaration
public IProcessStarterFactory WithNativeExecutable(string executableFile)
Parameters
Type Name Description
System.String executableFile

Full pathname of the executable file.

Returns
Type Description
IProcessStarterFactory

This IProcessStarterFactory.

| Improve this Doc View Source

WithProcessStartInfoConfig(Action<ProcessStartInfo>)

With process information configuration.

Declaration
public IProcessStarterFactory WithProcessStartInfoConfig(Action<ProcessStartInfo> config)
Parameters
Type Name Description
System.Action<System.Diagnostics.ProcessStartInfo> config

The configuration.

Returns
Type Description
IProcessStarterFactory

This IProcessStarterFactory.

| Improve this Doc View Source

WithShell(Boolean)

Indicates whether the process should use the shell execution (for console display).

Declaration
public IProcessStarterFactory WithShell(bool useShell = false)
Parameters
Type Name Description
System.Boolean useShell

Optional. True to use shell.

Returns
Type Description
IProcessStarterFactory

This IProcessStarterFactory.

| Improve this Doc View Source

WithWorkingDirectory(String)

Sets the process working directory.

Declaration
public IProcessStarterFactory WithWorkingDirectory(string workingDirectory)
Parameters
Type Name Description
System.String workingDirectory

Pathname of the working directory.

Returns
Type Description
IProcessStarterFactory

This IProcessStarterFactory.

Implements

IProcessStarterFactory

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX