Show / Hide Table of Contents

Interface IProcessStarterFactory

Interface for process starter factory.

Namespace: Kephas.Diagnostics
Assembly: Kephas.Core.dll
Syntax
[AppServiceContract]
public interface IProcessStarterFactory

Methods

| Improve this Doc View Source

CreateProcessStarter()

Creates the process starter.

Declaration
IProcessStarter CreateProcessStarter()
Returns
Type Description
IProcessStarter

The new ProcessStarter.

| Improve this Doc View Source

GetProcessStartInfo()

Gets the process start information.

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

The process start information.

| Improve this Doc View Source

WithArguments(String[])

Sets the process arguments.

Declaration
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
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
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
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>)

Adds further confiuguration to the process information.

Declaration
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
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
IProcessStarterFactory WithWorkingDirectory(string workingDirectory)
Parameters
Type Name Description
System.String workingDirectory

Pathname of the working directory.

Returns
Type Description
IProcessStarterFactory

This 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