OptionsMonitor<TOptions> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implementation of IOptionsMonitor<TOptions>.
generic <typename TOptions>
where TOptions : classpublic ref class OptionsMonitor : IDisposable, Microsoft::Extensions::Options::IOptionsMonitor<TOptions>
public class OptionsMonitor<TOptions> : IDisposable, Microsoft.Extensions.Options.IOptionsMonitor<TOptions> where TOptions : class
type OptionsMonitor<'Options (requires 'Options : null)> = class
interface IOptionsMonitor<'Options (requires 'Options : null)>
interface IDisposable
Public Class OptionsMonitor(Of TOptions)
Implements IDisposable, IOptionsMonitor(Of TOptions)
Type Parameters
- TOptions
Options type.
- Inheritance
-
OptionsMonitor<TOptions>
- Implements
Constructors
OptionsMonitor<TOptions>(IOptionsFactory<TOptions>, IEnumerable<IOptionsChangeTokenSource<TOptions>>, IOptionsMonitorCache<TOptions>) |
Constructor. |
Properties
CurrentValue |
The present value of the options, equivalent to |
Methods
Dispose() |
Removes all change registration subscriptions. |
Get(String) |
Returns a configured |
OnChange(Action<TOptions,String>) |
Registers a listener to be called whenever |
Extension Methods
OnChange<TOptions>(IOptionsMonitor<TOptions>, Action<TOptions>) |
Registers a listener to be called whenever |
Applies to
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา