{"id":1319,"date":"2023-04-25T21:59:40","date_gmt":"2023-04-25T13:59:40","guid":{"rendered":"http:\/\/www.wayln.com\/?p=1319"},"modified":"2023-04-25T21:59:40","modified_gmt":"2023-04-25T13:59:40","slug":"%e4%bd%bf%e7%94%a8cyusb-dll%e5%af%bc%e8%87%b4%e6%8f%92%e5%85%a5%e8%ae%be%e5%a4%87%e7%9a%84%e6%97%b6%e5%80%99%e5%8d%a1%e4%b8%bb%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.wayln.com\/?p=1319","title":{"rendered":"\u4f7f\u7528CYUSB.DLL\u5bfc\u81f4\u63d2\u5165\u8bbe\u5907\u7684\u65f6\u5019\u5361\u4e3b\u7684\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"<p>\u6700\u8fd1\u8c03\u7528cyusb.dll\uff0c\u91cd\u65b0\u63d2\u5165\u8bbe\u5907\uff0c\u5728DeviceAttah\u4e8b\u4ef6\u4e2d\u603b\u662f\u4f1a\u5361\u4e3b\uff0c\u4f46\u662f\u52a0\u5165\u65ad\u70b9\u5c31\u4e0d\u4f1a\u5361\u4e3b\uff0c\u540e\u6765\u53d1\u73b0\u9700\u8981\u52a0\u5165await\u5ef6\u65f6<\/p>\n<pre><code class=\"language-CSharp line-numbers\">private async void UsbManager_DeviceAttached(object sender, EventArgs e)\n{\n        if (DeviceAttached != null)\n            {\n                await Task.Delay(1000);\n                DeviceAttached?.Invoke(sender, e);\n\n            }\n}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u8c03\u7528cyusb.dll\uff0c\u91cd\u65b0\u63d2\u5165\u8bbe\u5907\uff0c\u5728DeviceAttah\u4e8b\u4ef6\u4e2d\u603b\u662f\u4f1a\u5361\u4e3b\uff0c\u4f46\u662f\u52a0\u5165\u65ad\u70b9\u5c31\u4e0d\u4f1a\u5361\u4e3b\uff0c\u540e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,54,2],"tags":[],"class_list":["post-1319","post","type-post","status-publish","format-standard","hentry","category-c","category-cyusb","category-2"],"_links":{"self":[{"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/posts\/1319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wayln.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1319"}],"version-history":[{"count":1,"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/posts\/1319\/revisions"}],"predecessor-version":[{"id":1320,"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/posts\/1319\/revisions\/1320"}],"wp:attachment":[{"href":"https:\/\/www.wayln.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wayln.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wayln.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}