SignalR Blueprints
eBook - ePub

SignalR Blueprints

Einar Ingebrigtsen

Buch teilen
  1. 244 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

SignalR Blueprints

Einar Ingebrigtsen

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist SignalR Blueprints als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu SignalR Blueprints von Einar Ingebrigtsen im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Computer Science & Web Programming. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
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...

Inhaltsverzeichnis