IPartitionResolver 接口

定义

定义必须实现的方法,这些方法用于自定义的会话状态分区解析。

public interface class IPartitionResolver
public interface IPartitionResolver
type IPartitionResolver = interface
Public Interface IPartitionResolver

注解

IPartitionResolver Initialize ResolvePartition 如果在 SQL 或状态服务器模式下,为跨多个后端节点的会话状态数据提供自定义分区解析,则实现接口和和方法。

可以在具有属性的配置文件 (ASP.NET 设置架构) 中配置会话状态管理信息 partitionResolverType 。 如果为特性指定了值 partitionResolverType ,则将 sqlConnectionString 忽略和 stateConnectionString 特性。

还可以使用属性以编程方式设置分区解析配置 PartitionResolverType 。 如果 PartitionResolverType 指定了属性,则将 SqlConnectionString StateConnectionString 忽略和属性。

方法

Initialize()

初始化自定义的分区解析器。

ResolvePartition(Object)

根据键参数解析分区。

适用于

另请参阅