SignalR Blueprints
eBook - ePub

SignalR Blueprints

Einar Ingebrigtsen

Partager le livre
  1. 244 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

SignalR Blueprints

Einar Ingebrigtsen

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que SignalR Blueprints est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  SignalR Blueprints par Einar Ingebrigtsen en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Computer Science et Web Programming. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2015
ISBN
9781783983124

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

SignalR Blueprints

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: February 2015
Production reference: 1200215
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78398-312-4
www.packtpub.com

Credits

Author
Einar Ingebrigtsen
Reviewers
Dejan Caric
Anup Hariharan Nair
Michael Smith
Commissioning Editor
Usha Iyer
Acquisition Editors
Richard Harvey
James Jones
Content Development Editor
Sumeet Sawant
Technical Editor
Shashank Desai
Copy Editors
Janbal Dharmaraj
Relin Hedly
Project Coordinator
Purav Motiwalla
Proofreaders
Stephen Copestake
Faye Coulman
Maria Gould
Indexer
Tejal Soni
Production Coordinator
Aparna Bhagat
Cover Work
Aparna Bhagat

About the Author

Einar Ingebrigtsen has been working professionally with software since 1994, ranging from games development on platforms such as the PlayStation, Xbox, and PC to the enterprise line of business application development since 2002. He has always kept his focus on creating great products with great user experiences, putting the user first. Einar received the Microsoft MVP award in October 2008, awarded for his work in the community and in Silverlight space with open source projects such as Balder—a 3D engine for Silverlight. Today, Einar runs a company called Dolittle together with his partners, doing consultancy and building his own products with their own open source projects at the heart of what they do. The clients that Dolittle has had in the last couple of years include NRK (the largest TV broadcaster in Norway), Statoil (a Norwegian oil company), Komplett (the largest e...

Table des matiĂšres