Beispiel #1
0
        /*
        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;
        }
        public static void RemoveSession(this Service service)
        {
            if (service == null) return;

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