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 | |
---|---|---|
ServiceProvider | Initializes a new instance of the ServiceProvider class. |
Top
Methods
Name | Description | |
---|---|---|
Add(Type, Func<Object>) | Adds a specified service provider. | |
Add(Type, Type) | Adds a specified service provider. | |
Add<TService, TImplementation>() | Adds a specified service provider. | |
AddInstance(Type, Object) | Adds an instance of service provider. | |
AddInstance<TService>(Object) | Adds an instance of service provider. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetService | Gets a service provider with a given type. | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
RemoveAll(Type) | Removes all service provider. | |
RemoveAll<T>() | Removes all service provider. | |
ToString | (Inherited from Object.) |
Top
Extension Methods
Name | Description | |
---|---|---|
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.