Aracılığıyla paylaş


OptionsMonitor<TOptions> Sınıf

Tanım

uygulamasının uygulanması IOptionsMonitor<TOptions>.

generic <typename TOptions>
 where TOptions : class, gcnew()public ref class OptionsMonitor : Microsoft::Extensions::Options::IOptionsMonitor<TOptions>
generic <typename TOptions>
 where TOptions : class, gcnew()public ref class OptionsMonitor : IDisposable, Microsoft::Extensions::Options::IOptionsMonitor<TOptions>
generic <typename TOptions>
 where TOptions : classpublic ref class OptionsMonitor : IDisposable, Microsoft::Extensions::Options::IOptionsMonitor<TOptions>
public class OptionsMonitor<TOptions> : Microsoft.Extensions.Options.IOptionsMonitor<TOptions> where TOptions : class, new()
public class OptionsMonitor<TOptions> : IDisposable, Microsoft.Extensions.Options.IOptionsMonitor<TOptions> where TOptions : class, new()
public class OptionsMonitor<TOptions> : IDisposable, Microsoft.Extensions.Options.IOptionsMonitor<TOptions> where TOptions : class
type OptionsMonitor<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> = class
    interface IOptionsMonitor<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
type OptionsMonitor<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> = class
    interface IOptionsMonitor<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
    interface IDisposable
type OptionsMonitor<'Options (requires 'Options : null)> = class
    interface IOptionsMonitor<'Options (requires 'Options : null)>
    interface IDisposable
Public Class OptionsMonitor(Of TOptions)
Implements IOptionsMonitor(Of TOptions)
Public Class OptionsMonitor(Of TOptions)
Implements IDisposable, IOptionsMonitor(Of TOptions)

Tür Parametreleri

TOptions

Seçenekler türü.

Devralma
OptionsMonitor<TOptions>
Uygulamalar

Oluşturucular

OptionsMonitor<TOptions>(IEnumerable<IConfigureOptions<TOptions>>, IEnumerable<IOptionsChangeTokenSource<TOptions>>)

Oluşturucu.

OptionsMonitor<TOptions>(IOptionsFactory<TOptions>, IEnumerable<IOptionsChangeTokenSource<TOptions>>, IOptionsMonitorCache<TOptions>)

Oluşturucu.

Özellikler

CurrentValue

Seçeneklerin bugünkü değeri.

Yöntemler

Dispose()

Tüm değişiklik kaydı aboneliklerini kaldırır.

Equals(Object)

Belirtilen nesnenin geçerli nesneye eşit olup olmadığını belirler.

(Devralındığı yer: Object)
Get(String)

Verilen nameile yapılandırılmış TOptions bir örneği döndürür.

GetHashCode()

Varsayılan karma işlevi işlevi görür.

(Devralındığı yer: Object)
GetType()

Type Geçerli örneğini alır.

(Devralındığı yer: Object)
MemberwiseClone()

Geçerli Objectöğesinin sığ bir kopyasını oluşturur.

(Devralındığı yer: Object)
OnChange(Action<TOptions,String>)

Her değişiklikte TOptions çağrılacak dinleyiciyi kaydeder.

OnChange(Action<TOptions>)

TOptions her değiştiğinde çağrılmak üzere bir dinleyici kaydeder.

ToString()

Geçerli nesneyi temsil eden dizeyi döndürür.

(Devralındığı yer: Object)

Uzantı Metotları

OnChange<TOptions>(IOptionsMonitor<TOptions>, Action<TOptions>)

Her değişiklikte TOptions çağrılacak dinleyiciyi kaydeder.

Şunlara uygulanır