An immutable value type that holds a representation for the identity of an
object on StateServer.
Namespace: Soss.Client
Assembly: soss_svcdotnet (in soss_svcdotnet.dll) Version: 6.2.0.0 (1.0.0.0)
Syntax
The StateServerKey type exposes the following members.
Properties
Name | Description | |
---|---|---|
AppId |
Return the identifier used as the application identifier for separating
distinct namespaces of keys on the store.
| |
AspSessionAppId |
Return the application ID corresponding to the ASP.Net application name of the
AppDomain we're currently executing in.
| |
DefaultAppId |
Gets or sets the default AppId to use when creating StateServerKey instance using
the #ctor(Guid), #ctor(Byte), or
#ctor(Byte, String) constructors.
|
Methods
Name | Description | |
---|---|---|
AppNameToId(String) |
Returns the application ID corresponding to the application name appName.
| |
AppNameToId(String, Boolean) |
Return the application ID corresponding to the application name appName and optionally register with StateServer for event callbacks
for the specified application name.
| |
Equals |
Compare another object with this StateServerKey.
(Overrides ValueTypeEquals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode |
Return an integer value suitable for hashtable lookups. The
value returned has the property that if a and b
are both StateServerKey objects and if
a.Equals(b) then a.GetHashCode() == b.GetHashCode().
(Overrides ValueTypeGetHashCode.) | |
GetKeyString |
Retrieves the original (unhashed) string used as a key to a StateServer
object.
| |
GetObjectData |
Support for the ISerializable interface. Populates a
StateServerKey with the data needed to serialize the
target object.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToByteArray |
Return a copy of the key as an array of bytes. The AppId is not
included in this array. See AppId to retrieve the
AppId value used in this key.
| |
ToString |
Return a human-consumable representation of this key value.
(Overrides ValueTypeToString.) |
Operators
Name | Description | |
---|---|---|
Equality |
Compare two StateServerKey objects returning true if they're
equal.
| |
Inequality |
Compare two StateServerKey objects returning true if they're
not equal.
|
Remarks
Given a StateServerKey, you may create an appropriate DataAccessor instance via the factory method CreateDataAccessor(StateServerKey).
Thread Safety
See Also