SignalR Blueprints
eBook - ePub

SignalR Blueprints

Einar Ingebrigtsen

Share book
  1. 244 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

SignalR Blueprints

Einar Ingebrigtsen

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is SignalR Blueprints an online PDF/ePUB?
Yes, you can access SignalR Blueprints by Einar Ingebrigtsen in PDF and/or ePUB format, as well as other popular books in Computer Science & Web Programming. We have over one million books available in our catalogue for you to explore.

Information

Year
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 of contents