public OwinServiceArguments(RouteData routeData, OwinRequestBody body, Response response) { With<IRequestData>(new OwinRequestData(routeData, body)); With<ICurrentHttpRequest>(new OwinCurrentHttpRequest(body)); With<IStreamingData>(new OwinStreamingData(body)); With<IHttpWriter>(new OwinHttpWriter(response)); }
public OwinServiceArguments(RouteData routeData, Request request, Response response) { With<AggregateDictionary>(new OwinAggregateDictionary(routeData, request)); With<ICurrentHttpRequest>(new OwinCurrentHttpRequest(request)); With<IStreamingData>(new OwinStreamingData(request)); With<IHttpWriter>(new OwinHttpWriter(response)); }