{"id":17,"date":"2008-01-03T17:08:25","date_gmt":"2008-01-03T21:08:25","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=17"},"modified":"2008-01-05T00:16:23","modified_gmt":"2008-01-05T04:16:23","slug":"systemcomponentmodelbackgroundworker","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=17","title":{"rendered":"System.ComponentModel.BackgroundWorker"},"content":{"rendered":"<p>Overview\u00a0<\/p>\n<ul>\n<li>Executes an operation on a separate, dedicated\u00a0thread.<\/li>\n<li>Good for long running operations such as download and database transactions.<\/li>\n<\/ul>\n<p>Implementation<\/p>\n<ul>\n<li>Implement operations in the DoWork event hanlder<\/li>\n<li>Call RunWorkerAsync to start the operation<\/li>\n<li>Receive notifications (update UI etc)\u00a0 in the ProgressChanged event handler<\/li>\n<li>Pass parameter to RunWorkerAsync and retrieve within DoWork event handler via DoWorkEventArgs.Arugument property<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Overview\u00a0 Executes an operation on a separate, dedicated\u00a0thread. Good for long running operations such as download and database transactions. Implementation Implement operations in the DoWork event hanlder Call RunWorkerAsync to start the operation Receive notifications (update UI etc)\u00a0 in the &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=17\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[],"class_list":["post-17","post","type-post","status-publish","format-standard","hentry","category-c"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-h","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17"}],"version-history":[{"count":0,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/17\/revisions"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}