StateServerKeyDefaultAppId Property

ScaleOut Software NamedCache API
Gets or sets the default AppId to use when creating StateServerKey instance using the #ctor(Guid), #ctor(Byte), or #ctor(Byte, String) constructors.

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

public static uint DefaultAppId { get; set; }

Property Value

Type: UInt32
Remarks

If we're executing in in an AppDomain initialized by ASP.Net, ASP.Net will assign the application an application name as given by AppDomainAppId. By default, StateServer will derive a distinct application name derived from the ASP.Net-assigned name and map that derived name to an AppId to create a DefaultAppId. StateServer will automatically register this default AppId for event notifications, but applications will only receive those notifications if a ObjectExpiration handler is established.

Applications may also establish a preferred DefaultAppId based on a application name of their own choosing by executing code like:

Examples

StateServerKey.DefaultAppId = StateServerKey.AppNameToId("MyAppName", true);

See Also

Reference