ConfigurationChangeTokenSource<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.
Creates IChangeTokens so that IOptionsMonitor<TOptions> gets notified when IConfiguration changes.
generic <typename TOptions>
public ref class ConfigurationChangeTokenSource : Microsoft::Extensions::Options::IOptionsChangeTokenSource<TOptions>
public class ConfigurationChangeTokenSource<TOptions> : Microsoft.Extensions.Options.IOptionsChangeTokenSource<TOptions>
type ConfigurationChangeTokenSource<'Options> = class
interface IOptionsChangeTokenSource<'Options>
Public Class ConfigurationChangeTokenSource(Of TOptions)
Implements IOptionsChangeTokenSource(Of TOptions)
Type Parameters
- TOptions
- Inheritance
-
ConfigurationChangeTokenSource<TOptions>
- Derived
- Implements
Constructors
ConfigurationChangeTokenSource<TOptions>(IConfiguration) |
Constructor taking the IConfiguration instance to watch. |
ConfigurationChangeTokenSource<TOptions>(String, IConfiguration) |
Constructor taking the IConfiguration instance to watch. |
Properties
Name |
The name of the option instance being changed. |
Methods
GetChangeToken() |
Returns the reloadToken from the IConfiguration. |
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.