/// <summary>
        /// See <see cref="IUrlRequestClient.OnDownloadData(IUrlRequest, Stream)"/> for details.
        /// </summary>
        /// <param name="action">Action to be executed when <see cref="IUrlRequestClient.OnDownloadData(IUrlRequest, Stream)"/>
        /// is called</param>
        /// <returns>
        /// Fluent Builder, call <see cref="UrlRequestClientBuilder.Build"/> to create
        /// a new <see cref="IUrlRequestClient"/> instance
        /// </returns>
        public UrlRequestClientBuilder OnDownloadData(OnDownloadDataDelegate action)
        {
            client.SetOnDownloadData(action);

            return(this);
        }
Example #2
0
 internal void SetOnDownloadData(OnDownloadDataDelegate action)
 {
     onDownloadData = action;
 }