Artix .Net

Session Members

Session overview

Public Instance Constructors

Session Constructor Creates a Session from the specified SessionManager.

Public Instance Methods

Dispose Dispose of session
DoAutomaticSessionRenew Sets whether the session should be automatically renewed prior to being timed out.
EndSession Ends the session. This will inform the Session Manager and stop the automatic session renewal. A user must call EndSession when they have finished with the session. If this is not done then the instance will not cleanup correctly by the garbage collector.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetCurrentRenewTimeout Gets the current renew timeout, in seconds for the session. Note that the renew timeout is assigned by the Session Manager when the session is created or renewed.
GetExpirationDateTime Gets the DateTime when the session will next timeout.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetSessionId Gets the SessionId of the session.
GetType (inherited from Object) Gets the Type of the current instance.
IsValid Returns whether the session is valid (active) or not.
RenewSession Manually renew the session.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

Session Class | Bus.Services Namespace