PluginAlgorithmRegistrationOptions Class
Definition
- Namespace
- Bodu.Globalization.Calendar.Plugins
- Assembly
- Bodu.Globalization.Calendar.Plugins.dll
- Package
- Bodu.Globalization.Calendar.Plugins 1.0.0
Controls how RegisterAlgorithms(INotableDatePlugin, NotableDateAlgorithmRegistry, PluginAlgorithmRegistrationOptions, ILogger?) treats a plugin's contributed algorithm keys.
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
Default
Gets the default options: colliding keys are rejected.
public static PluginAlgorithmRegistrationOptions Default { get; }
Property Value
- PluginAlgorithmRegistrationOptions
The shared default options instance.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |