System.Web.IPartitionResolver

Defines methods that must be implemented for custom session-state partition resolution.

See Also: IPartitionResolver Members

Syntax

[System.Web.AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=System.Web.AspNetHostingPermissionLevel.Minimal)]
[System.Web.AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=System.Web.AspNetHostingPermissionLevel.Minimal)]
public interface IPartitionResolver

Remarks

Implement the System.Web.IPartitionResolver interface and the IPartitionResolver.Initialize and IPartitionResolver.ResolvePartition(object) methods, if you are providing custom partition resolution for session-state data across multiple backend nodes when in SQL or state-server mode.

The session-state management information can be configured in the sessionState Element (ASP.NET Settings Schema) of the configuration file with the partitionResolverType attribute. If a value is specified for the partitionResolverType attribute, the sqlConnectionString and stateConnectionString attributes are ignored.

The partition resolution configuration can also be set programmatically using the System.Web.Configuration.SessionStateSection.PartitionResolverType property. If the System.Web.Configuration.SessionStateSection.PartitionResolverType property is specified, the System.Web.Configuration.SessionStateSection.SqlConnectionString and System.Web.Configuration.SessionStateSection.StateConnectionString properties are ignored.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0