![]() |
ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Defines methods for managing singleton instances in the context. More...
Public Member Functions | |
T | GetSingleton< T > () |
Gets a singleton instance of the specified type. | |
object | GetSingleton (System.Type type) |
Gets a singleton instance of the specified type. | |
T | CreateSingleton< T > (params object[] args) |
Creates a singleton instance of the specified type. | |
object | CreateSingleton (System.Type type, params object[] args) |
Creates a singleton instance of the specified type. | |
void | SetSingleton (object singletonObj, System.Type type) |
Sets a singleton instance for the specified type. | |
void | SetSingleton< T > (T singletonObj) |
Sets a singleton instance for the specified type. | |
System.Collections.Generic.IEnumerable< object > | GetSingletons () |
Gets all singleton instances in the context. | |
Defines methods for managing singleton instances in the context.
object XmobiTea.Bean.ISingletonContext.CreateSingleton | ( | System.Type | type, |
params object[] | args ) |
Creates a singleton instance of the specified type.
type | The type of the singleton. |
args | The arguments for the constructor. |
Implemented in XmobiTea.Bean.BeanContext.
T XmobiTea.Bean.ISingletonContext.CreateSingleton< T > | ( | params object[] | args | ) |
Creates a singleton instance of the specified type.
T | The type of the singleton. |
args | The arguments for the constructor. |
Implemented in XmobiTea.Bean.BeanContext.
object XmobiTea.Bean.ISingletonContext.GetSingleton | ( | System.Type | type | ) |
Gets a singleton instance of the specified type.
type | The type of the singleton. |
Implemented in XmobiTea.Bean.BeanContext.
T XmobiTea.Bean.ISingletonContext.GetSingleton< T > | ( | ) |
Gets a singleton instance of the specified type.
T | The type of the singleton. |
Implemented in XmobiTea.Bean.BeanContext.
System.Collections.Generic.IEnumerable< object > XmobiTea.Bean.ISingletonContext.GetSingletons | ( | ) |
Gets all singleton instances in the context.
Implemented in XmobiTea.Bean.BeanContext.
void XmobiTea.Bean.ISingletonContext.SetSingleton | ( | object | singletonObj, |
System.Type | type ) |
Sets a singleton instance for the specified type.
singletonObj | The singleton instance. |
type | The type to associate with the singleton. |
Implemented in XmobiTea.Bean.BeanContext.
void XmobiTea.Bean.ISingletonContext.SetSingleton< T > | ( | T | singletonObj | ) |
Sets a singleton instance for the specified type.
T | The type to associate with the singleton. |
singletonObj | The singleton instance. |
Implemented in XmobiTea.Bean.BeanContext.