示例#1
0
        public OfflineHttpContext(OfflineWebSession offlineSession, string method, string url, NameValueCollection postData)
        {
            _offlineSession = offlineSession;

            _request  = new OfflineHttpRequest(method, url, postData);
            _session  = new OfflineHttpSessionState(offlineSession);
            _server   = new OfflineHttpServerUtility(offlineSession);
            _response = new OfflineHttpResponse();
        }
示例#2
0
        public OfflineHttpContext(OfflineWebSession offlineSession, string method, string url, NameValueCollection postData)
        {
            _offlineSession = offlineSession;

            _request = new OfflineHttpRequest(method, url, postData);
            _session = new OfflineHttpSessionState(offlineSession);
            _server = new OfflineHttpServerUtility(offlineSession);
            _response = new OfflineHttpResponse();
        }
示例#3
0
        public static void CreateContext(OfflineWebSession webSession, string method, string url, NameValueCollection postData)
        {
            WebAppConfig.Init(webSession.MapPath);

            HttpContextBase context = new OfflineHttpContext(webSession, method, url, postData);

            Current = context;

            context.SessionObject = WebAppHelper.CreateSessionObject();

            WebAppConfig.Fire_SessionCreated(context.SessionObject);
        }
示例#4
0
 public OfflineHttpSessionState(OfflineWebSession webSession)
 {
     _webSession = webSession;
 }
 public ContextCreatedEventArgs(OfflineWebSession webSession, HttpContextBase httpContext)
 {
     _webSession  = webSession;
     _httpContext = httpContext;
 }
示例#6
0
        public static void CreateContext(OfflineWebSession webSession, string method, string url, NameValueCollection postData )
        {
            WebAppConfig.Init(webSession.MapPath);

            HttpContextBase context = new OfflineHttpContext(webSession, method, url, postData);

            Current = context;

            context.SessionObject = WebAppHelper.CreateSessionObject();

            WebAppConfig.Fire_SessionCreated(context.SessionObject);
        }
示例#7
0
 public OfflineHttpSessionState(OfflineWebSession webSession)
 {
     _webSession = webSession;
 }
 public OfflineHttpServerUtility(OfflineWebSession webSession)
 {
     _webSession = webSession;
 }
示例#9
0
 public OfflineHttpServerUtility(OfflineWebSession webSession)
 {
     _webSession = webSession;
 }
示例#10
0
 public ContextCreatedEventArgs(OfflineWebSession webSession, HttpContextBase httpContext)
 {
     _webSession = webSession;
     _httpContext = httpContext;
 }