售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
SignalR Blueprints
Table of Contents
SignalR Blueprints
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What is the state of the Web?
Personal style
What this book covers
Who this book is for
What you need for this book
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. The Primer
Where are we coming from?
The terminal
Fast forwarding
Completing the circle
SignalR
Terminology
Messaging
Publish/Subscribe
Decoupling
Patterns
Model-View-Controller
Model-View-ViewModel
Command Query Responsibility Segregation
Libraries and frameworks
jQuery
ASP.NET MVC 5
KnockoutJS
Bifrost
Making it look good – using Twitter bootstrap
Tools
Visual Studio 2013
NuGet
Summary
2. Overheating the Discussion
The goal – how to create a basic forum discussion site
Hub
Getting started – creating an MVC template
Creating the landing page for our forum
Setting up the packages
Preparing our web application for SignalR
Making your SignalR hubs available for the client
How to add JavaScript references to views
Creating a simple template mechanism
Securing the forum
How to create your UI for threads on your forum
Creating the thread list – adding a table
Adding a modal for creation of new threads
Enabling the interaction for the view
Creating threads
Our first hub – threads
Enabling the data access for threads
Making the threads become visible
Hooking up the user interaction
The detail view – posts on specific threads
Navigating to a thread to see the posts
Adding the view content for a thread
Adding the thread view logic
Summary
3. Extra! Extra! Read All About It!
The goal – how to bring to life an imagined news site
Getting started – creating an MVC template
Setting up the packages
Making any SignalR hubs available for the client
Creating the models
Putting in place the Data Access Layer
The look and feel
Templating
Hubs
Layout
The landing page
The content
The magic code
The newsroom
Finding the needle in the haystack
Master/detail – navigation
Summary
4. Can You Measure It?
The goal – an imagined dashboard
Decoupling it all
Back to basics
Setting up the packages
Making any SignalR hubs available for the client
Knocking it out of the park
Our single page
The server side of things
The hub
Naively dealing with requests
Bringing it all back to the client
ViewModel
BindingHandler
View
Trying it all out
Summary
5. What Line of Business Are You In?
The goal – a simple line of business
Decoupling – the next level
Proxy generation
Composing the UI
Convention over configuration
Getting assimilated
Getting the packages
The single page
Composing
Structure
Feature
The hub
Register
List
Completing the composition
Concurrency and staleness
Summary
6. An Architectural Taste
The goal – banking
Where does it all start?
Bounded context
Core domain
Supporting domain
Generic domain
Ubiquitous language
Entity
Value object
Aggregate
Repository
Domain events
Domain services
Structure
Command Query Responsibility Segregation
Bifrost
Command
CommandHandler
Validation
Business rules
Security
Events
EventSource
AggregateRoot
EventSubscriber
ReadModel
Query
Proxies
Getting started
Getting the packages
The page
Structure
Accounts overview
Concepts
Read model and queries
Defaults
View and ViewModel
Domain
Command
Events
AggregateRoot
CommandHandler
Back to the frontend
Input validation
Business rules
EventSubscriber
Summary
7. The Three Screens – Mobile First
XAML
Binding
The goal – mobile banking
Getting started
Getting the packages
Plumbing
Bringing back the Web
Extending the hub
Pivoting
Our first ViewModel
Accounts
Overview
Transfer
Putting it all into the composition
What about that SignalR?
Making it a bit more useable
Grand finale – running it all
Summary
8. Putting the X in .NET – Xamarin
The goal – rinse and repeat
Getting started
Getting the packages
Features
Overview
Bringing back the Web
Running things
Summary
9. Debugging or Troubleshooting
Logging
Server
The JavaScript client
The .NET client
Windows Phone 8.x client
Going deeper
Fiddler
Performance counters
The browser
Summary
10. Hosting and Deployment
Self-hosting
The packages
The code
The client
Scaling out
SQL Server
Redis
Azure
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜