SessionReference<T>
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Keeps a WeakReference to an singleton instance of T stored in the current Application. Since 3.2.7
- C#
- VB.NET
public class SessionReference<T>
Public Class SessionReference(Of T)
Use GetInstance to retrieve the session-singleton instance of your object of type T .
Parameters
| Name | Description |
|---|---|
| T | Type of the session-singleton object. |
Constructors
SessionReference()
Initializes a new instance of SessionReference.
Properties
Id
String: Id of the session holding the SessionReference.
Instance
WeakReference<T>: Singleton instance of T .