Professional
José M. Aguilar
SignalR
Programming in
Microsoft ASP.NET
PUBLISHED BY
Microsoft Press
A Division of Microsoft Corporation
One Microsoft Way
Redmond, Washington 98052-6399
Copyright © 2014 by Krasis Consulting S.L.
All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any
means without the written permission of the publisher.
Library of Congress Control Number: 2014930486
ISBN: 978-0-7356-8388-4
Printed and bound in the United States of America.
First Printing
Microsoft Press books are available through booksellers and distributors worldwide. If you need support related
to this book, email Microsoft Press Book Support at mspinput@microsoft.com. Please tell us what you think of
this book at http://www.microsoft.com/learning/booksurvey.
Microsoft and the trademarks listed at http://www.microsoft.com/about/legal/en/us/IntellectualProperty
/Trademarks/EN-US.aspx are trademarks of the Microsoft group of companies. All other marks are property of
their respective owners.
The example companies, organizations, products, domain names, email addresses, logos, people, places, and
events depicted herein are ctitious. No association with any real company, organization, product, domain name,
email address, logo, person, place, or event is intended or should be inferred.
This book expresses the author’s views and opinions. The information contained in this book is provided without
any express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or
distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by
this book.
Acquisitions Editor: Devon Musgrave
Developmental Editor: Devon Musgrave
Project Editor: Carol Dillingham
Editorial Production: nSight, Inc.
Technical Reviewer: Todd Meister; Technical Review services provided by Content Master, a member of
CM Group, Ltd.
Copyeditor: Richard Carey
Indexer: Lucie Haskins
Cover: Twist Creative • Seattle and Joel Panchot
To my parents, for all the love and unconditional support you
gave that kid who only liked computers.
And to my three girls, Inma, Inmita, and María, for putting up
with me daily and yet being able to give me so much love and
happiness.
—José M. AguilAr
Contents at a Glance
Introduction xiii
CHAPTER 1 Internet, asynchrony, multiuser…wow! 1
CHAPTER 2 HTTP: You are the client, and you are the boss 5
CHAPTER 3 Introducing SignalR 17
CHAPTER 4 Persistent connections 27
CHAPTER 5 Hubs 57
CHAPTER 6 Persistent connections and hubs from other threads 103
CHAPTER 7 Real-time multiplatform applications 117
CHAPTER 8 Deploying and scaling SignalR 151
CHAPTER 9 Advanced topics 181
Index 233
- 1
- 2
前往页