Share via


IPersistentStateFeature Interface

Definition

Provides access to a key/value collection that can be used to persist state between connections and requests. Whether a transport supports persisting state depends on the implementation. The transport must support pooling and reusing connection instances for state to be persisted.

Because values added to persistent state can live in memory until a connection is no longer pooled, use caution when adding items to this collection to avoid excessive memory use.

public interface IPersistentStateFeature
type IPersistentStateFeature = interface
Public Interface IPersistentStateFeature

Properties

State

Gets a key/value collection that can be used to persist state between connections and requests.

Applies to