ServicesFactory.Create Method
Creates a specified service provider.
Namespace: Microsoft.Owin.Hosting.Services
Assembly: Microsoft.Owin.Hosting (in Microsoft.Owin.Hosting.dll)
Overload List
Name | Description | |
---|---|---|
![]() ![]() |
Create() | Create a default ServiceProvider. |
![]() ![]() |
Create(Action<ServiceProvider>) | Create a default ServiceProvider. |
![]() ![]() |
Create(IDictionary<String, String>) | Create a default ServiceProvider with the given settings. |
![]() ![]() |
Create(IDictionary<String, String>, Action<ServiceProvider>) | Create a default ServiceProvider with the given settings. |
![]() ![]() |
Create(String) | Create a default ServiceProvider with the given settings file. |
![]() ![]() |
Create(String, Action<ServiceProvider>) | Create a default ServiceProvider with the given settings file. |
See Also
ServicesFactory Class
Microsoft.Owin.Hosting.Services Namespace
Return to top
ServicesFactory.Create Method ()
Create a default ServiceProvider.
Syntax
public static IServiceProvider Create()
public:
static IServiceProvider^ Create()
static member Create : unit -> IServiceProvider
Public Shared Function Create As IServiceProvider
Return Value
Type: System.IServiceProvider
Returns IServiceProvider.
Return to top
ServicesFactory.Create Method (Action<ServiceProvider>)
Create a default ServiceProvider.
Syntax
public static IServiceProvider Create(
Action<ServiceProvider> configuration
)
public:
static IServiceProvider^ Create(
Action<ServiceProvider^>^ configuration
)
static member Create :
configuration:Action<ServiceProvider> -> IServiceProvider
Public Shared Function Create (
configuration As Action(Of ServiceProvider)
) As IServiceProvider
Parameters
- configuration
Type: System.Action<ServiceProvider>
Return Value
Type: System.IServiceProvider
Returns IServiceProvider.
Return to top
ServicesFactory.Create Method (IDictionary<String, String>)
Create a default ServiceProvider with the given settings.
Syntax
public static IServiceProvider Create(
IDictionary<string, string> settings
)
public:
static IServiceProvider^ Create(
IDictionary<String^, String^>^ settings
)
static member Create :
settings:IDictionary<string, string> -> IServiceProvider
Public Shared Function Create (
settings As IDictionary(Of String, String)
) As IServiceProvider
Parameters
- settings
Type: System.Collections.Generic.IDictionary<String, String>
Return Value
Type: System.IServiceProvider
Returns IServiceProvider.
Return to top
ServicesFactory.Create Method (IDictionary<String, String>, Action<ServiceProvider>)
Create a default ServiceProvider with the given settings.
Syntax
public static IServiceProvider Create(
IDictionary<string, string> settings,
Action<ServiceProvider> configuration
)
public:
static IServiceProvider^ Create(
IDictionary<String^, String^>^ settings,
Action<ServiceProvider^>^ configuration
)
static member Create :
settings:IDictionary<string, string> *
configuration:Action<ServiceProvider> -> IServiceProvider
Public Shared Function Create (
settings As IDictionary(Of String, String),
configuration As Action(Of ServiceProvider)
) As IServiceProvider
Parameters
- settings
Type: System.Collections.Generic.IDictionary<String, String>
- configuration
Type: System.Action<ServiceProvider>
Return Value
Type: System.IServiceProvider
Returns IServiceProvider.
Return to top
ServicesFactory.Create Method (String)
Create a default ServiceProvider with the given settings file.
Syntax
public static IServiceProvider Create(
string settingsFile
)
public:
static IServiceProvider^ Create(
String^ settingsFile
)
static member Create :
settingsFile:string -> IServiceProvider
Public Shared Function Create (
settingsFile As String
) As IServiceProvider
Parameters
- settingsFile
Type: System.String
Return Value
Type: System.IServiceProvider
Returns IServiceProvider.
Return to top
ServicesFactory.Create Method (String, Action<ServiceProvider>)
Create a default ServiceProvider with the given settings file.
Syntax
public static IServiceProvider Create(
string settingsFile,
Action<ServiceProvider> configuration
)
public:
static IServiceProvider^ Create(
String^ settingsFile,
Action<ServiceProvider^>^ configuration
)
static member Create :
settingsFile:string *
configuration:Action<ServiceProvider> -> IServiceProvider
Public Shared Function Create (
settingsFile As String,
configuration As Action(Of ServiceProvider)
) As IServiceProvider
Parameters
- settingsFile
Type: System.String
- configuration
Type: System.Action<ServiceProvider>
Return Value
Type: System.IServiceProvider
Returns IServiceProvider.
Return to top