Bewerken

Delen via


FederationConfiguration.Initialize Method

Definition

Initializes the current instance.

public:
 virtual void Initialize();
public virtual void Initialize ();
abstract member Initialize : unit -> unit
override this.Initialize : unit -> unit
Public Overridable Sub Initialize ()

Exceptions

The current instance has already been initialized (The IsInitialized property is true.)

Remarks

This method ensures that the current instance is properly initialized before it is used by the HTTP Modules to process incoming requests. It should only be called once. Check the IsInitialized property before calling the method. This method sets the IsInitialized property is set true.

The default implementation creates a default cookie handler if there is not one already configured through the CookieHandler property and calls the IdentityConfiguration.Initialize method on the identity configuration object that is configured through the IdentityConfiguration property. You can override this method to modify this behavior or to provide additional initialization in derived classes.

This method should be invoked before the class is used by the HTTP Modules to process incoming requests.

Applies to