Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="requestContext"></param>
        void RaiseReadingProgressChangedEvent(WebRequestContext requestContext)
        {
            var _argument = new WebRequestReadingProgressChangedEventArgs(requestContext, requestContext.RequestState.TotalBytesHandled, requestContext.ContentLength);

            if (null != ReadingProgressChanged)
            {
                ReadingProgressChanged(this, _argument);
            }

            OnReadingProgressChanged(_argument);
        }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnReadingProgressChanged(WebRequestReadingProgressChangedEventArgs e)
 {
 }