Table of Contents

Interface IOptionsUpdater<TOptions>

Namespace
Acuit.Pinpoint.Common.Options
Assembly
Acuit.Pinpoint.Common.dll

Used to retrieve and update TOptions instances.

public interface IOptionsUpdater<TOptions> : IOptionsMonitor<TOptions>

Type Parameters

TOptions

The options type.

Inherited Members
Extension Methods

Methods

UpdateValue(string?, TOptions)

Updates the TOptions instance with the given name.

void UpdateValue(string? name, TOptions value)

Parameters

name string

The name of the TOptions instance. If null, DefaultName, which is the empty string, is used.

value TOptions

The updated TOptions instance.

Exceptions

InvalidOperationException

There is no IUpdateableOptions<TOptions> service registered to perform the update.

InvalidOperationException

There are multiple IUpdateableOptions<TOptions> services registered to perform the update.