OwinServerFactory.Create Method (Func<IDictionary<String, Object>, Task>, IDictionary<String, Object>)
Creates an OwinHttpListener and starts listening on the given URL.
Namespace: Microsoft.Owin.Host.HttpListener
Assembly: Microsoft.Owin.Host.HttpListener (in Microsoft.Owin.Host.HttpListener.dll)
Syntax
public static IDisposable Create(
Func<IDictionary<string, object>, Task> app,
IDictionary<string, object> properties
)
public:
static IDisposable^ Create(
Func<IDictionary<String^, Object^>^, Task^>^ app,
IDictionary<String^, Object^>^ properties
)
static member Create :
app:Func<IDictionary<string, Object>, Task> *
properties:IDictionary<string, Object> -> IDisposable
Public Shared Function Create (
app As Func(Of IDictionary(Of String, Object), Task),
properties As IDictionary(Of String, Object)
) As IDisposable
Parameters
app
Type: System.Func<IDictionary<String, Object>, Task>The application entry point.
properties
Type: System.Collections.Generic.IDictionary<String, Object>The addresses to listen on.
Return Value
Type: System.IDisposable
The OwinHttpListener. Invoke Dispose to shut down.
See Also
OwinServerFactory Class
Microsoft.Owin.Host.HttpListener Namespace
Return to top