/// <summary>
        /// BeginRequest 处理程序
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void context_BeginRequest(object sender, EventArgs e)
        {
            HttpApplication application   = sender as HttpApplication;
            string          caseParameter = HttpContext.Current.Request["Parameter"];

            if (this.IsUploadRequest(application.Request) &&
                caseParameter == "MyModule")
            {
                HttpWorkerRequest workerRequest   = this.GetWorkerRequest(application.Context);
                Encoding          contentEncoding = application.Context.Request.ContentEncoding;
                if (workerRequest != null)
                {
                    byte[]            boundary = this.ExtractBoundary(application.Request.ContentType, contentEncoding);
                    string            uploadId = application.Request.QueryString["uploadId"];
                    MimeUploadHandler handler  = new MimeUploadHandler(new RequestStream(workerRequest), boundary, uploadId, contentEncoding);
                    if (uploadId != null)
                    {
                        this.RegisterIn(application.Context, handler);
                    }
                    try
                    {
                        this.SetUploadState(application.Context, UploadState.ReceivingData);
                        handler.Parse();
                        this.InjectTextParts(workerRequest, contentEncoding.GetBytes(handler.TextParts));
                    }
                    catch (DisconnectedException)
                    {
                        this.CleanupFiles(application.Context);
                    }
                }
            }
        }