IPartitionResolver Interface
Definição
Define métodos que devem ser implementados para resolução personalizada de partição de estado de sessão.Defines methods that must be implemented for custom session-state partition resolution.
public interface class IPartitionResolver
public interface IPartitionResolver
type IPartitionResolver = interface
Public Interface IPartitionResolver
Comentários
Implemente a IPartitionResolver interface e Initialize os ResolvePartition métodos e, se você estiver fornecendo resolução de partição personalizada para dados de estado de sessão em vários nós de back-end no modo SQL ou de servidor de estado.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.
As informações de gerenciamento de estado de sessão podem ser configuradas no elemento sessionState (esquema de configurações ASP.net) do arquivo de configuração com o partitionResolverType atributo.The session-state management information can be configured in the sessionState Element (ASP.NET Settings Schema) of the configuration file with the partitionResolverType attribute. Se um valor for especificado para o partitionResolverType atributo, os sqlConnectionString stateConnectionString atributos e serão ignorados.If a value is specified for the partitionResolverType attribute, the sqlConnectionString and stateConnectionString attributes are ignored.
A configuração de resolução de partição também pode ser definida programaticamente usando a PartitionResolverType propriedade.The partition resolution configuration can also be set programmatically using the PartitionResolverType property. Se a PartitionResolverType propriedade for especificada, as SqlConnectionString StateConnectionString Propriedades e serão ignoradas.If the PartitionResolverType property is specified, the SqlConnectionString and StateConnectionString properties are ignored.
Métodos
| Initialize() |
Inicializa o resolvedor de partição personalizado.Initializes the custom partition resolver. |
| ResolvePartition(Object) |
Resolve a partição com base em um parâmetro chave.Resolves the partition based on a key parameter. |