IPartitionResolver インターフェイス

定義

カスタム セッション状態のパーティション解決のために実装する必要があるメソッドを定義します。

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

注釈

IPartitionResolver SQL モードまたは状態サーバー モードの場合に、複数のバックエンド ノード間でセッション状態データのカスタム パーティション解決を提供する場合は、インターフェイスと Initialize メソッドと ResolvePartition メソッドを実装します。

セッション状態管理情報は、 属性を使用して構成ファイルの sessionState 要素 (ASP.NET 設定スキーマ)partitionResolverType 構成できます。 属性に値が指定されている partitionResolverType 場合、 sqlConnectionString 属性と stateConnectionString 属性は無視されます。

パーティション解決の構成は、 プロパティを使用して PartitionResolverType プログラムで設定することもできます。 プロパティが PartitionResolverType 指定されている場合、 SqlConnectionString プロパティと StateConnectionString プロパティは無視されます。

メソッド

Initialize()

カスタム パーティション リゾルバーを初期化します。

ResolvePartition(Object)

key パラメーターに基づいてパーティションを解決します。

適用対象

こちらもご覧ください