万本电子书0元读

万本电子书0元读

顶部广告

SignalR Real-time Application Cookbook电子书

售       价:¥

4人正在读 | 0人评论 9.8

作       者:Roberto Vespa

出  版  社:Packt Publishing

出版时间:2014-04-23

字       数:137.2万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
This book contains illustrated code examples to help you create realtime, asynchronous, and bidirectional clientserver applications. Each recipe will concentrate on one specific aspect of application development with SignalR showing you how that aspect can be used proficiently. Different levels of developers will find this book useful. Beginners will be able to learn all the fundamental concepts of SignalR, quickly becoming productive in a difficult arena. Experienced programmers will find in this book a handy and useful collection of readymade solutions to common use cases, which they will be able to enhance as needed. Developers can also use the book as a quick reference to the most important SignalR features. No previous practical experience either with SignalR or with realtime communication in general is required.
目录展开

SignalR Real-time Application Cookbook

Table of Contents

SignalR Real-time Application Cookbook

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 this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Understanding the Basics

Introduction

Adding a Hub to an ASP.NET project

Getting ready

How to do it…

How it works…

There's more…

Adding a Hub to a self-hosting application

Getting ready

How to do it…

Connecting to a Hub from a JavaScript client

Getting ready

How to do it…

How it works…

Connecting to a Hub from a .NET application

Getting ready

How to do it…

How it works…

2. Using Hubs

Introduction

Adding a method to a Hub and counting the calls to it

Getting ready

How to do it…

How it works…

See also

Calling back the caller from a Hub's method

Getting ready

How to do it…

How it works…

Broadcasting to all connected clients

Getting ready

How to do it…

How it works…

Adding a connection to a group

Getting ready

How to do it…

How it works…

Removing a connection from a group

Getting ready

How to do it…

Broadcasting to all connected clients except the caller

Getting ready

How to do it…

Broadcasting to all clients except the specified ones

Getting ready

How to do it…

Broadcasting to all clients in a group except the caller

Getting ready

How to do it…

Broadcasting from outside a Hub

Getting ready

How to do it…

How it works…

See also

Using the return value of a Hub method

Getting ready

How to do it…

There's more…

3. Using the JavaScript Hubs Client API

Introduction

Starting a Hub connection

Getting ready

How to do it…

How it works…

See also…

Setting up connection transport strategies

Getting ready

How to do it…

Calling a server-side Hub method

How to do it…

Adding a client-side method on the proxy and calling it from the server

How to do it…

Managing errors across a complex asynchronous workflow

How to do it…

How it works…

There's more…

4. Using the .NET Hubs Client API

Introduction

Starting a Hub connection

Getting ready

How to do it…

How it works…

Setting up connection transport strategies

Getting ready

How to do it…

Calling a server-side Hub method

Getting ready

How to do it…

How it works…

Adding a client-side method on the proxy and calling it from the server

Getting ready

How to do it…

How it works…

Managing errors across a complex asynchronous workflow

Getting ready

How to do it…

How it works…

5. Using a Persistent Connection

Introduction

Adding and registering a persistent connection

Getting ready

How to do it…

How it works…

Sending messages from the server

Getting ready

How to do it…

How it works…

Sending messages to the server

Getting ready

How to do it…

How it works…

Exchanging messages between a server and a JavaScript client

Getting ready

How to do it…

How it works…

Exchanging messages between a server and a .NET client

Getting ready

How to do it…

How it works…

6. Handling Connections

Introduction

Controlling the lifetime of a connection

Getting ready

How to do it…

How it works…

Handling a connection transient state

Getting ready

How to do it…

Establishing a cross-domain connection

Getting ready

How to do it…

There's more…

7. Analyzing Advanced Scenarios

Introduction

Generating static files for JavaScript proxies

Getting ready

How to do it…

Authorizing requests on a Hub

Getting ready

How to do it…

There's more…

Authorizing requests on a persistent connection

Getting ready

How to do it…

Authorizing requests in a self-hosting context

Getting ready

How to do it...

Scaling up

How to do it...

There's more…

Scaling out with Azure

Getting started

How to do it...

How it works...

Scaling out with Redis

Getting started

How to do it...

Scaling out with SQL Server

Getting started

How to do it...

Establishing proxy-less connections

Getting ready

How to do it…

How it works…

Introducing dependency injection (simple approach)

Getting ready

How to do it…

How it works…

Introducing dependency injection (advanced approach)

Getting ready

How to do it…

Using dependency injection to replace a default behavior

Getting ready

How to do it…

How it works…

Extending the Hub pipeline

Getting ready

How to do it…

There's more…

Handling errors

Getting ready

How to do it…

8. Building Complex Applications

Introduction

Implementing a room-based chat application

Getting ready

How to do it…

There's more…

Implementing a shared whiteboard

Getting ready

How to do it…

Implementing a real-time map of flying airplanes

Getting ready

How to do it…

Implementing a "pets finder" application

Getting ready

How to do it…

Implementing a custom backplane

Getting ready

How to do it…

There's more…

Implementing a real-time error notification system

Getting ready

How to do it…

There's more…

A. Creating Web Projects

Introduction

Creating an empty ASP.NET web application

Creating an ASP.NET web forms application

Creating an ASP.NET MVC application

Creating an MVC controller and a related view

Creating an ASP.NET website

B. Insights

Transport strategies

Asynchronous programming and SignalR

Index

累计评论(0条) 1个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部