Наследование: ICurrentHttpRequest
Пример #1
0
        public OwinServiceArguments(RouteData routeData, IDictionary<string, object> environment)
        {
            var httpRequest = new OwinCurrentHttpRequest(environment);

            With<IRequestData>(new OwinRequestData(routeData, environment, httpRequest));

            With<ICurrentHttpRequest>(httpRequest);
            With<IStreamingData>(new OwinStreamingData(environment));
            With<IHttpWriter>(new OwinHttpWriter(environment));

            With<IResponse>(new OwinResponse(environment));
        }
Пример #2
0
        public OwinServiceArguments(RouteData routeData, IDictionary <string, object> environment)
        {
            var httpRequest = new OwinCurrentHttpRequest(environment);

            With <IRequestData>(new OwinRequestData(routeData, environment, httpRequest));


            With <ICurrentHttpRequest>(httpRequest);
            With <IStreamingData>(new OwinStreamingData(environment));
            With <IHttpWriter>(new OwinHttpWriter(environment));

            With <IResponse>(new OwinResponse(environment));
        }