AsyncLazyInitializer.Initialize(CancellationToken) 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.
Executes the action given in the constructor if it has not yet been executed, or waits for it to complete if in progress from a prior call.
public void Initialize (System.Threading.CancellationToken cancellationToken = default);
member this.Initialize : System.Threading.CancellationToken -> unit
Public Sub Initialize (Optional cancellationToken As CancellationToken = Nothing)
Parameters
- cancellationToken
- CancellationToken
Exceptions
Any exception thrown by the action is rethrown here.