FederationConfiguration.Initialize Method ()

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes the current instance.

Namespace:   System.IdentityModel.Services.Configuration
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

public virtual void Initialize()

Exception Condition
InvalidOperationException

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

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.

.NET Framework
Available since 4.5
Return to top
Show: