Example #1
0
        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));
        }
Example #2
0
        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));
        }