Show / Hide Table of Contents

Class SessionKey

Session key.

Inheritance
object
SessionKey
Implements
IPortableObject
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Tangosol.Web
Assembly: Coherence.SessionStore.dll
Syntax
public class SessionKey : IPortableObject
Remarks

Session key is a combination of user-configurable application identifier and system-generated session identifier.

Constructors

SessionKey()

Deserialization constructor (for internal use only).

Declaration
public SessionKey()

SessionKey(string, string)

Initializes a new instance of the SessionKey class.

Declaration
public SessionKey(string applicationId, string sessionId)
Parameters
Type Name Description
string applicationId

The application ID.

string sessionId

The session ID.

Properties

ApplicationId

Application identifier.

Declaration
public string ApplicationId { get; }
Property Value
Type Description
string

SessionId

Session identifier.

Declaration
public string SessionId { get; }
Property Value
Type Description
string

Methods

Equals(object)

Test objects for equality.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj

Object to compare this object with.

Returns
Type Description
bool

True if this object and the specified object are equal, false otherwise.

Overrides
object.Equals(object)

GetHashCode()

Return hash code for this object.

Declaration
public override int GetHashCode()
Returns
Type Description
int

This object's hash code.

Overrides
object.GetHashCode()

ReadExternal(IPofReader)

Restore the contents of a user type instance by reading its state using the specified IPofReader object.

Declaration
public void ReadExternal(IPofReader reader)
Parameters
Type Name Description
IPofReader reader

The IPofReader from which to read the object's state.

Exceptions
Type Condition
IOException

If an I/O error occurs.

ToString()

Return string representation of this object.

Declaration
public override string ToString()
Returns
Type Description
string

String representation of this object.

Overrides
object.ToString()

WriteExternal(IPofWriter)

Save the contents of a POF user type instance by writing its state using the specified IPofWriter object.

Declaration
public void WriteExternal(IPofWriter writer)
Parameters
Type Name Description
IPofWriter writer

The IPofWriter to which to write the object's state.

Exceptions
Type Condition
IOException

If an I/O error occurs.

Operators

operator ==(SessionKey, SessionKey)

Equality operator implementation.

Declaration
public static bool operator ==(SessionKey left, SessionKey right)
Parameters
Type Name Description
SessionKey left

Left argument.

SessionKey right

Right argument.

Returns
Type Description
bool

True if arguments are equal, false otherwise.

operator !=(SessionKey, SessionKey)

Inequality operator implementation.

Declaration
public static bool operator !=(SessionKey left, SessionKey right)
Parameters
Type Name Description
SessionKey left

Left argument.

SessionKey right

Right argument.

Returns
Type Description
bool

True if arguments are not equal, false otherwise.

Implements

IPortableObject
In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.