ConfigurationManager<T>.GetConfigurationAsync Method
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.
Overloads
GetConfigurationAsync() |
Obtains an updated version of Configuration. |
GetConfigurationAsync(CancellationToken) |
Obtains an updated version of Configuration. |
GetConfigurationAsync()
Obtains an updated version of Configuration.
public System.Threading.Tasks.Task<T> GetConfigurationAsync ();
member this.GetConfigurationAsync : unit -> System.Threading.Tasks.Task<'T (requires 'T : null)>
Public Function GetConfigurationAsync () As Task(Of T)
Returns
Configuration of type T.
Remarks
If the time since the last call is less than AutomaticRefreshInterval then GetConfigurationAsync(String, IDocumentRetriever, CancellationToken) is not called and the current Configuration is returned.
Applies to
GetConfigurationAsync(CancellationToken)
Obtains an updated version of Configuration.
public System.Threading.Tasks.Task<T> GetConfigurationAsync (System.Threading.CancellationToken cancel);
abstract member GetConfigurationAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T : null)>
override this.GetConfigurationAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T : null)>
Public Function GetConfigurationAsync (cancel As CancellationToken) As Task(Of T)
Parameters
- cancel
- CancellationToken
CancellationToken
Returns
Configuration of type T.
Implements
Remarks
If the time since the last call is less than AutomaticRefreshInterval then GetConfigurationAsync(String, IDocumentRetriever, CancellationToken) is not called and the current Configuration is returned.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for