Table of Contents

PluginAlgorithmRegistrationOptions Class

Definition

Namespace
Bodu.Globalization.Calendar.Plugins
Assembly
Bodu.Globalization.Calendar.Plugins.dll
Package
Bodu.Globalization.Calendar.Plugins 1.0.0
Source
PluginAlgorithmRegistrationOptions.cs
public sealed class PluginAlgorithmRegistrationOptions
Inheritance
PluginAlgorithmRegistrationOptions
Inherited Members
Extension Methods

Remarks

By default a contributed key that collides with a built-in algorithm key or with a key already present in the target registry is rejected, so a plugin cannot silently take over an existing resolution path. Opting in to AllowOverride permits the replacement; each override is logged at warning level so the takeover is observable.

Constructors

PluginAlgorithmRegistrationOptions()

public PluginAlgorithmRegistrationOptions()

Properties

AllowOverride

Gets a value indicating whether a contributed key may replace a built-in algorithm or an existing registration.

public bool AllowOverride { get; init; }

Property Value

bool

true to permit replacement (each override is logged at warning level); otherwise false to reject the collision. The default is false.

Default

Gets the default options: colliding keys are rejected.

public static PluginAlgorithmRegistrationOptions Default { get; }

Property Value

PluginAlgorithmRegistrationOptions

The shared default options instance.

Applies to

ProductVersions
.NET8, 10

See Also