. Net, C # And Silverlight development classics-sharing the best practices of 15 MVPs
Basic Information
Original Title: Real World. Net 4, C #, and Silverlight: lndispensible experiences from 15 MVPs
Author: [us] Dominick Baier Bill evjen Gyorgy balassy [Translator's profile]
Translator: Wang Jingfan yuanfang Li Yu
Press: Tsinghua University Press
ISBN: 9787302299950
Mounting time:
Published on: February 1, October 2012
Start: 16
Page number: 576
Version: 1-1
Category: Computer
More about. net, C #, and Silverlight-sharing the best practices of 15 MVPs
Introduction
Books
Computer books
《. Net, C #, and Silverlight development Bible-sharing the best practices of 15 MVPs by 15 experienced and knowledgeable MVPs. net 4 world, provides information on how to use.. NET Framework, C #, Silverlight, and Visual Studio build a wide range of solutions or enhance the priceless information of existing solutions.
Directory
. Net, C # And Silverlight development classics-sharing the best practices of 15 MVPs
Chapter 2 Asp.net and jquery 1
1.1 understand web forms 2
1.1.1 view status 2
1.1.2 web. config conversion 4
1.1.3 simplify web. config 4
1.1.4 new Asp.net Web Forms Template 4
1.2 Asp.net MVC 7
1.2.1 MVC version 7
1.2.2 MVC components 8
1.2.3 MVC tool 13
1.2.4 sample application 18
1.2.5 Asp.net MVC Framework Summary 26
1.3 jquery 26
1.3.1 use jquery to manipulate Dom element 28
1.3.2 use jquery to call server code 29
1.3.3 jquery 30
1.4 Summary 30
1.5 author profile 31
Chapter 2 Asp.net performance 33
2.1 understand how Asp.net processes page requests 33
2.2 Status Management and cache 35
2.2.1 understanding status 36 in. net
2.2.2 use session 37
2.2.3 use output cache 41
2.2.4 partial page cache 46
2.2.5 view the new object cache option 47 in. Net 4
2.3 cache Web Service 49
2.4 hardware considerations 50
2.5 use performance counters 51
2.6 tips and tips 53
2.6.1 reduce requests to a minimum of 54
2.6.2 use content delivery network 54
2.6.3 enable the browser to cache items for a long time 55
2.6.4 enable content compression 57
2.6.5 location of content on the page: 58
2.6.6 externalize JavaScript and CSS 58
2.7 summary 59
2.8 author profile 59
Chapter 2 Asp.net moral hacker attack 61
3.1 moral hacker attacks-is this a contradiction modifier? 62
3.2 fill toolkit 63
3.2.1 fiddler 63
3.2.2 firebug 65
3.2.3 Internet Explorer 9 developer toolbar 66
3.2.4 lens 66
3.3 understand session management 67
3.3.1 session management in HTTP 67
3.3.2 session management 68 in Asp.net
3.4 attack Asp.net authentication 69
3.4.1 in-depth study of Asp.net authentication 69
3.4.2 ticket theft 70
3.4.3 ticket tampering 71
3.4.4 hijack logon session 72
3.4.5 Cross-Site Request Forgery 77
3.5 attack Asp.net session 80
3.5.1 Asp.net session 80
3.5.2 guess session ID 80
3.5.3 Session Cookie Theft 81
3.5.4 fixed session 85
3.6 hacker attack view status 87
3.6.1 view status 87
3.6.2 tampered view status 90
3.6.3 reprint view status 90
3.7 spoofing event handler 91
3.7.1 internal event Verification 92
3.7.2 hacker attack event Verification 92
3.7.3 protect websites from post attacks 94
3.8 Conclusion 95
3.9 author profile 95
Chapter 1 how to build a real-world Silverlight 5 Application 97
4.1 set scenario 98 for the Application
4.2 code after the original model -- use sketchflow 99
4.2.1 introduction to sketchflow 100
4.2.2 familiar with sketchflow 100
4.2.3 create an application prototype 101
4.3 getting started with Data Binding 105
4.3.1 hello, Data Binding 105
4.3.2 create a data binding screen 108
4.4 Applications of the WCF Ria service 110
4.4.1 Select Service Layer Technology 112
4.4.2 hello, WCF Ria service 112
4.4.3 create server code 114
4.4.4 the Silverlight project 120
4.5 apply mvvm mode 124
4.5.1 different parts, different roles 125
4.5.2 select the mvvm method 126
4.5.3 select a Helper -- mvvm light 126
4.5.4 rebuilding to mvvm mode 126
4.5.5 listen to your command 131
4.5.6 message transmission 133
4.6 create a custom control 134
4.7 conclusion 137
4.8 author profile 137
Chapter 2 Silverlight-first-line hope for business applications 5th
5.1 getting started 140
5.1.1 hello, business world 140
5.1.2 The project template 143
5.1.3 The XAML is the object XML 145.
5.1.4 hosting Silverlight application 146
5.1.5 excellent iapplication service 147
5.2 select the appropriate Silverlight framework 148
5.2.1 obtain solid: MVC, MVP, and mvvm 149
5.2.2 dependency injection and control reversal 151
5.2.3 managed extension framework 152
5.2.4 mvvm framework 155
5.3 make Silverlight plug-and-play 158
5.3.1 dynamic loading 158
5.3.2 remove the browser application 159
5.3.3 independent storage 159
5.3.4 communication 160
5.4 future of Silverlight 161
5.5 conclusion 161
5.6 author profile 162
Chapter 2 tips and skills for designers and developers 6th
6.1 understand the differences between Silverlight and WPF 163
6.1.1 preferentially select XAML 164
6.1.2 understanding separation of concerns 164
6.2 tips and tips for designers 164
6.2.1 name object 164
6.2.2 design in Photoshop 165
6.2.3 import asset 165 from Photoshop
6.2.4 use sample data for better design experience 166
6.3 tips and tips for developers 167
6.3.1 show sample data 168 in Design Mode
6.3.2 use behavior to make things easier 168
6.4 Conclusion 170
6.5 author profile 170
Chapter 2 mvvm mode in Silverlight 4 7th
7.1 develop your own framework 171
7.2 learn about mvvm 172
7.3 create an mvvm framework 173
7.3.1 framework objective 174
7.3.2 framework 175
7.3.3 entry 176
7.3.4 define the viewmodel 178
7.3.5 create a new view and viewmodel 185
7.3.6 register view and viewmodel 187
7.3.7 view 192
7.3.8 create a composite screen 197
7.3.9 dialog box 203
7.3.10 view communication 205
7.3.11 use mvvm framework 205
7.4 existing mvvm framework 206
7.4.1 "prism 206"
7.4.2 mvvm light 207
7.4.3 Caliburn. Micro 207
7.4.4 other frameworks 208
7.5 other considerations 208
7.5.1 Data Binding 208
7.5.2 command 209
7.5.3 Data Access 209
7.6 Conclusion 210
7.7 author profile 210
Chapter 2 Windows Phone "Mango" 8th for Silverlight developers
8.1 hardware base 211
8.1.1 The camera API 211
8.1.2 sensors API 215
8.2 Software basics 217
8.2.1 runtime database improvement 218
8.2.2 network sockets 219
8.2.3 Silverlight/xNa hybrid application 220
8.2.4 local database 221
8.3 application model 222
8.3.1 fast application switchover 222
8.3.2 multitasking 224
8.3.3 notice 226
8.3.4 background transmission service 227
8.4 integration service 228
8.4.1 secondary role 228
8.4.2 push notification 229
8.4.3 contact/Appointment data access 230
8.5 conclusion 231
8.6 author profile 231
Chapter 2 communication with the practical service of WCF 9th
9.1 sample project 234
9.2 introduction to Service 234
9.2.1 distribution means communication 235
9.2.2 service-oriented 236
9.3 WCF basics 101 237
9.3.1 basic toolkit 238
9.3.2 B's Capacity: 239
9.3.3 less is more than 240
9.4 application solution 240
9.4.1 requirement 241
9.4.2 application architecture 241
9.4.3 application structure 242
9.5 modeling service 243
9.6 metadata 254
9.6.1 flat WSDL 255
9.6.2 metadata URL 257
9.7 achieve service 259
9.7.1 verification 259
9.7.2 map 260
9.7.3 follow-up 263
9.8 hosting service 266
9.8.1 custom hosting 266
9.8.2 use the console host for testing 267
9.8.3 self-managed 267 with Windows Service
9.8.4 web hosting 270 with was
9.8.5 Bootstrap 272
9.9 consumption service 274
9.9.1 contract sharing 274
9.9.2 asynchronous call 275
9.9.3 Service proxy mode 275
9.10 supplement to service Methods 279
9.10.1 Web Programming Model 279
9.10.2 hosting and consumption 281
9.11 optimization strategy 283
9.11.1 adjusted by 283
9.11.2 stream mode 287
9.12 conclusion 289
9.13 author profile 289
Chapter 4 using WIF to protect the WCF Service 10th
10.1 identity 291 in. Net Applications
10.1.1 authentication 292 in the base class library
10.1.2 authentication 293 in WCF
10.1.3 Windows logo basics 294
10.1.4 repeat the build base block 298
10.2 WCF and WIF 298
10.2.1 prerequisites 299
10.2.2 configure and enable WIF 299
10.2.3 conversion and access declaration 308
10.2.4 authorization 309
10.2.5 tracking 312
10.3 possible solutions for protecting the Movie Database soap service 312
10.3.1 internal user 313
10.3.2 add external content provider 319
10.3.3 access solution 323
10.4 possible solutions for protecting Movie Database rest services 323
10.4.1 internal user 324
10.4.2 token-based authentication 324
10.5 conclusion 326
10.6 author profile 326
Chapter 2 practical. net job Parallel library 11th
11.1 Problems and Solutions 328
11.2 use task 330
11.2.1 task 330
11.2.2 closure 333
11.2.3 Application Task 336
11.3 understand TPL-style Exception Handling 340
11.3.1 understand aggresponexception 340
11.3.2 Exception Handling 341
11.4 learn about canceling 342
11.4.1 cancel application-Basic Knowledge 342
11.4.2 application cancellation-registration and mutual lock 346
11.5 use a concurrent set -- concurrentqueue 347
11.6 learn about continuation 350
11.6.1 taskcompletionsource 352
11.6.2 implement continuation 353
11.6.3 asyncstate 356
11.7 use blockingcollection class 358
11.7.1 use blockingcollection 360
11.7.2 learn about spinwait. spinuntil 363
11.8 conclusion 365
11.9 author profile 366
Chapter 2 WF programming language 12th
12.1 getting started 367
12.1.1 declaration workflow syntax 370
12.1.2 variables and parameters 371
12.1.3 expression 372
12.1.4 attribute 373
12.1.5 "dynamic" attribute 373
12.2 control execution flow 374
12.2.1 procedural style 375
12.2.2 flowchart style 381
12.3 build a custom activity 388
12.3.1 Activity 1, 388
12.3.2 codeactivity 390
12.3.3 asynccocodeactivity 391
12.3.4 nativeactivity 393
12.3.5 learn when to use custom activity 395
12.3.6 composite activity 396
12.3.7 lifecycle 396
12.4 use persistence 399
12.5 host workflow 400 in Windows appfabric
12.6 further reading 401
12.7 conclusion 402
12.8 author profile 402
Chapter 5 practical WPF Data Binding 13th
13.1 sample application 403
13.1.1 use mvvm 404
13.1.2 understand the structure of the sample application 404
13.1.3 understand model 405
13.1.4 learn about viewmodel 406
13.1.5 view 408
13.1.6 use positioner class 408
13.2 Data Binding overview 413
13.2.1 understand data context 414
13.2.2 learn about Element Binding to element 414
13.2.3 understand binding mode 414
13.2.4 interface-based binding 415
13.3 use the binding command 415
13.3.1 use mvvm and delegate command 416.
13.3.2 create a viewmodel 417
13.3.3 define the viewmodels command 418
13.3.4 bind command 420 through XAML code
13.4 use simple data binding 420
13.5 value conversion 422
13.6 bind multiple attributes 424
13.7 bind to list 426
13.7.1 use collectionviewsource to filter 431
13.7.2 display details of list items 433
13.7.3 use data template 435
13.7.4: group 436
13.7.5 bind layer data to 438
13.7.6 bind long list 443
13.8 edit data 446
13.8.1 update data 446
13.8.2 verification 453
13.8.3 error 454 displayed
13.8.4 edit grid 456
13.9 conclusion 466
13.10 author profile 466
Chapter 2 development driven by user stories and BDD 14th
14.1 capture requirements as functions through user stories 467
14.1.1 problems in the formal requirement document 468
14.1.2 use user stories to focus on business value and promote communication 468
14.1.3 functional scheme and story acceptance criteria 469
14.2 shortcomings of TDD 470
14.3 follow behavior with BDD 470
14.3.1 development by external users 470
14.3.2 use the BDD framework to convert functions into code 472
14.3.3 tic-tac-toe BDD kata 475
14.4 use user stories to get the tic-tac-toe function of the game 475
14.5 project entry 478
14.5.1 solution: start programming game 480
14.5.2 integration with starting a game solution 491
14.5.3 scheme: alternate player 492
14.5.4 integration of alternative gamer solution 515
14.5.5 solution: Show game 516
14.5.6 Integrated Display game solution 529
14.5.7 solution: Conditions for winning the game: three identical tags on the first line: 529
14.5.8 integrated a three-way solution to win the game 546
14.5.9 complete game 546
14.6 going further 546
14.7 conclusion 547
14.8 author profile 547
Chapter 4 automated unit testing 15th
15.1 understand unit test 549
15.1.1 scope, Lego, and connection part 549
15.1.2 test-driven development 550
15.2 understand the benefits of the test first method 551
15.2.1 tested code 551
15.2.2 self-document code 551
15.2.3 defensive code 551
15.2.4 maintainable code 551
15.2.5 code taste detector 551
15.3 for a basic example 552
15.4 allocation, behavior, assertions 553
15.4.1 allocate 553 million
15.4.2 act 553
15.4.3 asserted 553
15.5 code, testing, framework and running program 553
15.5.1 code 554:
15.5.2 test 554
15.5.3 test framework 554
15.5.4 test the running program 555
15.5.5 use the CI server and source code management 557
15.6 solution/project structure 557
15.7 use nuget to mix nunit and vs 2010 558
15.8 methods with false and counterfeit 559
15.8.1 false dependency injection 559
15.8.2 mocking framework 561
15.9 class features, test features and special methods 562
15.10 difficult test part-driving edge 563
15.10.1 MVC 564
15.10.2 MVPs 564
15.10.3 mvvm 565
15.11 use sensing variables to reconstruct non-tested code 566
15.12 use automated testing in other practices 567
15.13 conclusion 568
15.14 author profile 568
Source of this book: China Interactive publishing network