An object factory that can create instances of types for Http Web Request and Thread Scoped object objects and value types.
Westwind.Utilities.ObjectFactory<T>
public class ObjectFactory<T> : object
Class Members
Member | Description | |
---|---|---|
Constructor |
||
CreateObject |
Returns a standard instance of an object. public static T CreateObject(Object[] args) |
|
CreateThreadScopedObject |
Create an instance scoped to a current thread. public static T CreateThreadScopedObject(Object[] args) |
|
CreateWebRequestOrThreadScopedObject |
Creates either Web Request scoped object instance or value public static T CreateWebRequestOrThreadScopedObject(Object[] args) |
|
CreateWebRequestScopedObject |
Creates an instance of an object that is scoped to the current Http Web Request. The instance is cached in HttpContext.Current.Items collection and effectively acts as a request Singleton. public static T CreateWebRequestScopedObject(Object[] args) |
|
GetUniqueObjectKey |
Returns a unique ID for a given type and parameter signature public static string GetUniqueObjectKey(Object[] args) |
Requirements
Namespace: Westwind.UtilitiesAssembly: westwind.utilities.dll
© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic