Table of Contents

Class DotComputePluginOptions

Namespace
DotCompute.Runtime.Configuration
Assembly
DotCompute.Runtime.dll

Configuration options for DotCompute plugin system

public class DotComputePluginOptions
Inheritance
DotComputePluginOptions
Inherited Members

Fields

SectionName

The section name.

public const string SectionName = "DotCompute:Plugins"

Field Value

string

Properties

EnableDependencyInjection

Gets or sets whether to enable dependency injection for plugins

public bool EnableDependencyInjection { get; set; }

Property Value

bool

EnableHotReload

Gets or sets whether to enable hot reload of plugins

public bool EnableHotReload { get; set; }

Property Value

bool

EnableIsolation

Gets or sets whether to enable plugin isolation

public bool EnableIsolation { get; set; }

Property Value

bool

EnablePlugins

Gets or sets whether plugin loading is enabled

public bool EnablePlugins { get; set; }

Property Value

bool

LoadTimeoutSeconds

Gets or sets the plugin load timeout in seconds

[Range(1, 120)]
public int LoadTimeoutSeconds { get; set; }

Property Value

int

MaxConcurrentLoads

Gets or sets the maximum number of concurrent plugin loads

[Range(1, 10)]
public int MaxConcurrentLoads { get; set; }

Property Value

int

PluginDirectories

Gets or sets the plugin directories to scan

public IList<string> PluginDirectories { get; init; }

Property Value

IList<string>

PluginLifetime

Gets or sets the service lifetime for plugin instances

public ServiceLifetime PluginLifetime { get; set; }

Property Value

ServiceLifetime

PluginSettings

Gets or sets plugin-specific configuration

public Dictionary<string, object> PluginSettings { get; init; }

Property Value

Dictionary<string, object>

TrustedPublishers

Gets or sets the trusted plugin publishers

public IList<string> TrustedPublishers { get; init; }

Property Value

IList<string>

ValidateSignatures

Gets or sets whether to validate plugin signatures

public bool ValidateSignatures { get; set; }

Property Value

bool