コード例 #1
0
ファイル: WebAPI.Proxy.cs プロジェクト: rmicar/ICarDMSWeb
        /*
        public ICarDMSProxy () ServiceStack.ServiceHost.IRequestContext requestContext)
        {

                this.requestContext = requestContext;
                this.httpRequest = requestContext.Get<IHttpRequest>();
                this.httpResponse = requestContext.Get<IHttpResponse>();

        }
          */
        public void Execute( ServiceStack.ServiceInterface.Service paramService, object paramRequest, object paramResponse)
        {
            this.Service = paramService;
            this.requestContext = this.Service.RequestContext;
            this.httpRequest = requestContext.Get<IHttpRequest>();
            this.httpResponse = requestContext.Get<IHttpResponse>();
            this.requestDTO = paramRequest;
            this.responseDTO = paramResponse;
            Log.Debug("ICarDMSProxy.ExecuteBO()");
            ICarDMS.Proxy.PB.n_webapiproxy pepe = new ICarDMS.Proxy.PB.n_webapiproxy();
            pepe.execute(this);
            return;
        }
コード例 #2
0
        public static void RemoveSession(this Service service)
        {
            if (service == null) return;

            service.RequestContext.Get<IHttpRequest>().RemoveSession();
        }