Class ObjectFactory<T>

An object factory that can create instances of types for Http Web Request and Thread Scoped object objects and value types.

System.Object
  Westwind.Utilities.ObjectFactory<T>
public class ObjectFactory<T> : object

Class Members

MemberDescription

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.Utilities
Assembly: westwind.utilities.dll

© West Wind Technologies, 2019 • Updated: 06/23/19
Comment or report problem with topic