Table of Contents

DelegatingPluginTrustPolicy Class

Definition

Namespace
Bodu.Globalization.Calendar.Plugins
Assembly
Bodu.Globalization.Calendar.Plugins.dll
Package
Bodu.Globalization.Calendar.Plugins 1.0.0
Source
DelegatingPluginTrustPolicy.cs

A trust policy that delegates the decision to a caller-supplied function, suitable for runtime state, configuration, or remote attestation.

public sealed class DelegatingPluginTrustPolicy : IPluginTrustPolicy
Inheritance
DelegatingPluginTrustPolicy
Implements
Inherited Members
Extension Methods

Constructors

DelegatingPluginTrustPolicy(Func<PluginTrustContext, PluginTrustResult>)

Initializes a new instance of the DelegatingPluginTrustPolicy class.

public DelegatingPluginTrustPolicy(Func<PluginTrustContext, PluginTrustResult> decide)

Parameters

decide Func<PluginTrustContext, PluginTrustResult>

The function that decides trust for a candidate.

Exceptions

ArgumentNullException

decide is null.

Methods

Evaluate(PluginTrustContext)

Evaluates the trust of a candidate plugin assembly.

public PluginTrustResult Evaluate(PluginTrustContext context)

Parameters

context PluginTrustContext

The metadata describing the candidate assembly.

Returns

PluginTrustResult

The trust result.

Exceptions

ArgumentNullException

context is null.

Applies to

ProductVersions
.NET8, 10