ActivatorUtilities Class

 

Helper code for the various activator services.

Namespace:   Microsoft.Owin.Hosting.Services
Assembly:  Microsoft.Owin.Hosting (in Microsoft.Owin.Hosting.dll)

System::Object
  Microsoft.Owin.Hosting.Services::ActivatorUtilities

public ref class ActivatorUtilities abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateFactory(Type^)

Creates a factory to instantiate a type using constructor service injection if possible.

System_CAPS_pubmethodSystem_CAPS_staticCreateInstance(IServiceProvider^, Type^)

Instantiate an object of the given type, using constructor service injection if possible.

System_CAPS_pubmethodSystem_CAPS_staticGetServiceOrCreateInstance(IServiceProvider^, Type^)

Retrieve an instance of the given type from the service provider. If one is not found then instantiate it directly.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: