Share via


ActivatorUtilities Class

 

Helper code for the various activator services.

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

Inheritance Hierarchy

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

Syntax

public static class ActivatorUtilities
public ref class ActivatorUtilities abstract sealed 
[<AbstractClass>]
[<Sealed>]
type ActivatorUtilities = class end
Public NotInheritable Class ActivatorUtilities

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static CreateFactory(Type)

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

System_CAPS_pubmethodSystem_CAPS_static CreateInstance(IServiceProvider, Type)

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

System_CAPS_pubmethodSystem_CAPS_static GetServiceOrCreateInstance(IServiceProvider, Type)

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

Thread Safety

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

See Also

Microsoft.Owin.Hosting.Services Namespace

Return to top