Class SessionValue
A holder object that stores session attributes for a single session.
Implements
Inherited Members
Namespace: Tangosol.Web
Assembly: Coherence.SessionStore.dll
Syntax
public class SessionValue : IPortableObject
Constructors
SessionValue()
Deserialization constructor (for internal use only).
Declaration
public SessionValue()
SessionValue(IDictionary, ICollection<string>)
Initializes a new instance of the SessionValue.
Declaration
public SessionValue(IDictionary attributes, ICollection<string> overflowAttrs)
Parameters
Type | Name | Description |
---|---|---|
IDictionary | attributes | Session attributes except for overflow attributes. |
ICollection<string> | overflowAttrs | Overflow session attributes |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
Properties
Attributes
Session attributes except for overflow attributes.
Declaration
public IDictionary Attributes { get; }
Property Value
Type | Description |
---|---|
IDictionary |
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
GetHashCode()
Return hash code for this object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | This object's hash code. |
Overrides
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. |
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 ==(SessionValue, SessionValue)
Equality operator implementation.
Declaration
public static bool operator ==(SessionValue left, SessionValue right)
Parameters
Type | Name | Description |
---|---|---|
SessionValue | left | Left argument. |
SessionValue | right | Right argument. |
Returns
Type | Description |
---|---|
bool | True if arguments are equal, false otherwise. |
operator !=(SessionValue, SessionValue)
Inequality operator implementation.
Declaration
public static bool operator !=(SessionValue left, SessionValue right)
Parameters
Type | Name | Description |
---|---|---|
SessionValue | left | Left argument. |
SessionValue | right | Right argument. |
Returns
Type | Description |
---|---|
bool | True if arguments are not equal, false otherwise. |