ServiceProvider Class

Represents service provider.

Inheritance Hierarchy

System.Object
  Microsoft.Owin.Hosting.Services.ServiceProvider

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

Syntax

'Declaration
Public Class ServiceProvider _
    Implements IServiceProvider
'Usage
Dim instance As ServiceProvider
public class ServiceProvider : IServiceProvider
public ref class ServiceProvider : IServiceProvider
type ServiceProvider =  
    class 
        interface IServiceProvider 
    end
public class ServiceProvider implements IServiceProvider

The ServiceProvider type exposes the following members.

Constructors

  Name Description
Public method ServiceProvider Initializes a new instance of the ServiceProvider class.

Top

Methods

  Name Description
Public method Add(Type, Func<Object>) Adds a specified service provider.
Public method Add(Type, Type) Adds a specified service provider.
Public method Add<TService, TImplementation>() Adds a specified service provider.
Public method AddInstance(Type, Object) Adds an instance of service provider.
Public method AddInstance<TService>(Object) Adds an instance of service provider.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetService Gets a service provider with a given type.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method RemoveAll(Type) Removes all service provider.
Public method RemoveAll<T>() Removes all service provider.
Public method ToString (Inherited from Object.)

Top

Extension Methods

  Name Description
Public Extension Method GetService<T> (Defined by ServiceProviderExtensions.)

Top

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

Reference

Microsoft.Owin.Hosting.Services Namespace