Table of Contents

Class PrismOptions

Namespace
Refractor
Assembly
Refractor.dll

Settings for a new Prism context.

public sealed class PrismOptions
Inheritance
PrismOptions
Inherited Members

Properties

AutoPowerManagement

Pauses polling while the system sleeps, where IsAutoPowerManagementSupported.

public bool AutoPowerManagement { get; init; }

Property Value

bool

AvailabilityBaselineEstablished

Runs once on the poll thread after the first scan, before any change is reported. Only needed when a decision made from an earlier direct check has to be checked again. Ignored unless AvailabilityChanged is set. An exception it throws is written to prism's log.

public Action? AvailabilityBaselineEstablished { get; init; }

Property Value

Action

AvailabilityChanged

Turns on background availability polling. Runs on prism's poll thread, never the caller's. A backend that is already available when polling starts is not reported. An exception it throws is written to prism's log, and polling carries on.

public AvailabilityChangedHandler? AvailabilityChanged { get; init; }

Property Value

AvailabilityChangedHandler

DebounceSamples

Scans that must agree before a change is reported, from 1 up. Null means prism's default of two.

public int? DebounceSamples { get; init; }

Property Value

int?

MaxBackoff

Longest interval the scans back off to while nothing changes, from 1 millisecond up. Null turns backoff off.

public TimeSpan? MaxBackoff { get; init; }

Property Value

TimeSpan?

PollInterval

Time between scans, from 1 millisecond up. Null means prism's default of one second.

public TimeSpan? PollInterval { get; init; }

Property Value

TimeSpan?

Registry

The registry to bind to, for custom and plugin backends. Null means prism's built-in set.

public Registry? Registry { get; init; }

Property Value

Registry