SignalR Blueprints
eBook - ePub

SignalR Blueprints

Einar Ingebrigtsen

Compartir libro
  1. 244 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

SignalR Blueprints

Einar Ingebrigtsen

Detalles del libro
Vista previa del libro
Índice
Citas

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es SignalR Blueprints un PDF/ePUB en línea?
Sí, puedes acceder a SignalR Blueprints de Einar Ingebrigtsen en formato PDF o ePUB, así como a otros libros populares de Computer Science y Web Programming. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
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...

Índice