Table of Contents

Class TaskPoolGlobalHookOptions

Namespace
SharpHook
Assembly
SharpHook.dll

Represents options for TaskPoolGlobalHook.

public sealed class TaskPoolGlobalHookOptions
Inheritance
TaskPoolGlobalHookOptions
Inherited Members

Constructors

TaskPoolGlobalHookOptions(bool)

Initializes a new instance of TaskPoolGlobalHookOptions.

public TaskPoolGlobalHookOptions(bool runAsyncOnBackgroundThread)

Parameters

runAsyncOnBackgroundThread bool

true if RunAsync() should run the hook on a background thread. Otherwise, false.

See Also

TaskPoolGlobalHookOptions(int)

Initializes a new instance of TaskPoolGlobalHookOptions.

public TaskPoolGlobalHookOptions(int parallelismLevel)

Parameters

parallelismLevel int

The parallelism level of the event handlers.

See Also

TaskPoolGlobalHookOptions(int, bool)

Initializes a new instance of TaskPoolGlobalHookOptions.

public TaskPoolGlobalHookOptions(int parallelismLevel, bool runAsyncOnBackgroundThread)

Parameters

parallelismLevel int

The parallelism level of the event handlers.

runAsyncOnBackgroundThread bool

true if RunAsync() should run the hook on a background thread. Otherwise, false.

See Also

Fields

Sequential

The default options with the parallelism level of 1.

public static readonly TaskPoolGlobalHookOptions Sequential

Field Value

TaskPoolGlobalHookOptions

The options with the parallelism level of 1.

See Also

Properties

ParallelismLevel

Gets the configured parallelism level of the event handlers.

public int ParallelismLevel { get; }

Property Value

int

The parallelism level of the event handlers.

See Also

RunAsyncOnBackgroundThread

Gets the value of whether RunAsync() should run the hook on a background thread.

public bool RunAsyncOnBackgroundThread { get; }

Property Value

bool

true if RunAsync() should run the hook on a background thread. Otherwise, false.

See Also

See Also