资源描述:
《[Async.in.CSharp.5.0(2012.9)].Alex.Davies.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、AsyncinC#5.0AlexDaviesBeijing•Cambridge•Farnham•Köln•Sebastopol•TokyoAsyncinC#5.0byAlexDaviesCopyright©2012AlexDavies.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebastopol,CA95472.O’Reil
2、lybooksmaybepurchasedforeducational,business,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:800-998-9938orcorporate@oreilly.com.Edito
3、r:RachelRoumeliotisCoverDesigner:KarenMontgomeryProductionEditor:RachelSteelyInteriorDesigner:DavidFutatoIllustrators:RobertRomanoandRebeccaDemarestRevisionHistoryfortheFirstEdition:2012-09-07FirstreleaseSeehttp://oreilly.com/catalog/errata.csp?isbn=978
4、1449337162forreleasedetails.NutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.AsyncinC#5.0,theimageofapalmcockatoo,andrelatedtradedressaretrade-marksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanuf
5、acturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.,wasawareofatrademarkclaim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationo
6、fthisbook,thepublisherandauthorassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcon-tainedherein.ISBN:978-1-449-33716-2[LSI]1347041364TableofContentsPreface........................................................
7、.............vii1.Introduction...........................................................1AsynchronousProgramming1What’sSoGreatAboutAsynchronousCode?2WhatIsAsync?2WhatAsyncDoes3AsyncDoesn’tSolveEverything42.WhyProgramsNeedtoBeAsynchronous...............
8、.....................5DesktopUserInterfaceApplications5AnAnalogy:TheCafe6WebApplicationServerCode7AnotherAnalogy:TheRestaurantKitchen8Silverlight,WindowsPhone,andWindows89ParallelCode9AnExample103.WritingAsynchronousCodeManually.