Table of Contents

Class DiscoveryContainerBuilderExtensions.OptionsMonitorWrapper<T>

Namespace
Steeltoe.Discovery.Client
Assembly
Steeltoe.Discovery.ClientAutofac.dll
public class DiscoveryContainerBuilderExtensions.OptionsMonitorWrapper<T> : IOptionsMonitor<T>

Type Parameters

T
Inheritance
DiscoveryContainerBuilderExtensions.OptionsMonitorWrapper<T>
Implements
Inherited Members

Constructors

OptionsMonitorWrapper(T)

public OptionsMonitorWrapper(T option)

Parameters

option T

Properties

CurrentValue

Returns the current TOptions instance with the DefaultName.

public T CurrentValue { get; }

Property Value

T

Methods

Get(string)

Returns a configured TOptions instance with the given name.

public T Get(string name)

Parameters

name string

Returns

T

OnChange(Action<T, string>)

Registers a listener to be called whenever a named TOptions changes.

public IDisposable OnChange(Action<T, string> listener)

Parameters

listener Action<T, string>

The action to be invoked when TOptions has changed.

Returns

IDisposable

An IDisposable which should be disposed to stop listening for changes.