StateServerKeyAppNameToId Method (String)

ScaleOut Software NamedCache API
Returns the application ID corresponding to the application name appName.

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

public static uint AppNameToId(
	string appName
)

Parameters

appName
Type: SystemString
The name of the application to look up.

Return Value

Type: UInt32
The ID that StateServer assigns to correspond to appName.
Remarks

Application names are used to group StateServer keys into distinct namespaces of keys. Identical object IDs refer to distinct objects if the objects are associated with different appNames. An AppID (the value returned from this method), is a handle to the namespace of objects represented by the appName.

Application ID's are managed by the StateServer across all StateServer clients. They survive client restarts.

Calling this method ensures that the caller is registered with the StateServer to receive event notifications (e.g. object expiration notifications) for objects associated with appName.

See Also

Reference