StateServerKeyAspSessionAppId Property

ScaleOut Software NamedCache API
Return the application ID corresponding to the ASP.Net application name of the AppDomain we're currently executing in.

Namespace:  Soss.Client
Assembly:  soss_svcdotnet (in soss_svcdotnet.dll) Version: 6.2.0.0 (1.0.0.0)
Syntax

public static uint AspSessionAppId { get; }

Property Value

Type: UInt32
Remarks

When an application runs within a AppDomain initialized by ASP.Net, ASP.Net assigns the application a distinct name based on the name of the site. See AppDomainAppId for more details. StateServer automatically uses this name, if available, as the namespace for ASP.Net Session objects.

This property returns the result of translating the name to an AppId. Applications will automatically be registered for event notifications on this AppId, but must register a handler for the SessionExpired event in order to receive notifications.

If the application is not running under ASP.Net but creates StateServerKey objects using the #ctor(String) constructor, StateServer will use a reserved default AppID for the StateServerKey.

See Also

Reference