[This is preliminary documentation and is subject to change.]

The OWIN standard application method.

Namespace: Simple.WebSimple.WebSimple::Web
Assembly: Simple.Web (in Simple.Web.dll)

Syntax

C#

[Export("Owin.Application")]

public static Task Run(

IDictionary<stringobject> env,

IDictionary<stringstring[]> headers,

Stream body,

CancellationToken cancellationToken,

Func<intIDictionary<stringstring[]>, Func<StreamCancellationTokenTask>, Task> responseHandler,

Delegate next

)

VB

<Export("Owin.Application")> _

Public Shared Function Run( _

env As IDictionary(Of StringObject), _

headers As IDictionary(Of StringString()), _

body As Stream, _

cancellationToken As CancellationToken, _

responseHandler As Func(Of IntegerIDictionary(Of StringString()), Func(Of StreamCancellationTokenTask), Task), _

next As Delegate _

) As Task

C++

public:

[Export(L"Owin.Application")]

static Task^ Run(

IDictionary<String^, Object^>^ env,

IDictionary<String^, array<String^>^>^ headers,

Stream^ body,

CancellationToken cancellationToken,

Func<intIDictionary<String^, array<String^>^>^, Func<Stream^, CancellationTokenTask^>^, Task^>^ responseHandler,

Delegate^ next

)

Parameters

next
Type: System.DelegateSystem.DelegateSystem::Delegate
The next OWIN App in the chain.

Return Value

Type: System.Threading.Tasks.TaskSystem.Threading.Tasks.TaskSystem.Threading.Tasks::Task
A Task which will complete the request.

See Also

ApplicationApplicationApplication Class
Simple.WebSimple.WebSimple::Web Namespace