Esempio n. 1
0
 public void ProcessRequest()
 {
     //var lease = (ILease) RemotingServices.GetLifetimeService(this);
     //Debug.Assert(lease.CurrentState==LeaseState.Active);
     //lease.Renew(TimeSpan.FromMinutes(60));
     RemotingServices.Marshal(this);
     var ctx = _listener.GetContext();
     var workerRequest =
         new HttpListenerWorkerRequest(ctx, _virtualDir, _physicalDir);
     //Log.Debug("Virtual Path:"+_virtualDir+" Physical Path:"+_physicalDir);
     HttpRuntime.ProcessRequest(workerRequest);
 }
Esempio n. 2
0
        public void ProcessRequest()
        {
            //var lease = (ILease) RemotingServices.GetLifetimeService(this);
            //Debug.Assert(lease.CurrentState==LeaseState.Active);
            //lease.Renew(TimeSpan.FromMinutes(60));
            RemotingServices.Marshal(this);
            var ctx           = _listener.GetContext();
            var workerRequest =
                new HttpListenerWorkerRequest(ctx, _virtualDir, _physicalDir);

            //Log.Debug("Virtual Path:"+_virtualDir+" Physical Path:"+_physicalDir);
            HttpRuntime.ProcessRequest(workerRequest);
        }