Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying ServiceStack 4 Cookbook
  • Table Of Contents Toc
  • Feedback & Rating feedback
ServiceStack 4 Cookbook

ServiceStack 4 Cookbook

By : Hodgson
4.7 (3)
close
close
ServiceStack 4 Cookbook

ServiceStack 4 Cookbook

4.7 (3)
By: Hodgson

Overview of this book

If you are a .NET developer who is looking for a simpler way to build services, this is the book for you. It will show you how to write fast, maintainable APIs that are a pleasure to use and maintain starting from the database to the client and everything in-between.
Table of Contents (13 chapters)
close
close
12
Index

Broadcasting ServiceStack services with SignalR hubs


SignalR is a popular library for enabling real-time functionality to a web application. A simple use of this library with ServiceStack is to enable the requests or responses of our web services to SignalR clients that are listening to specific groups or methods.

Getting ready

First we are going to need an application to integrate; we will start with a template from the ServiceStackVS Visual Studio extension. If you are using Visual Studio Express, please see the Creating your ServiceStack solution with Visual Studio and NuGet section in Appendix A, Getting Started, and continue from the second instruction in the How to do it… section.

How to do it…

  1. Create a new application using a template from the ServiceStackVS Visual Studio extension. For this example, we will use the ServiceStack ASP.NET Empty template. This is how the template for the new application will look:

  2. Install the SignalR NuGet package in both the main project and the ServiceInterface...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
ServiceStack 4 Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon