Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IPartitionResolver Interface

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

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

public interface IPartitionResolver

The IPartitionResolver type exposes the following members.

  NameDescription
Public methodInitializeInitializes the custom partition resolver.
Public methodResolvePartitionResolves the partition based on a key parameter.
Top

Implement the IPartitionResolver interface and the Initialize and ResolvePartition 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 PartitionResolverType property. If the PartitionResolverType property is specified, the SqlConnectionString and StateConnectionString properties are ignored.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft