ASP.NET Core SignalR in the nutshell

Fiodar Sazanavets

Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
15 Lessons (1h 24m)
    • 1. 1 - Introduction

      1:26
    • 2. 2 - set up your environment

      1:55
    • 3. 3 - SignalR hub overview

      6:49
    • 4. 4 - SignalR hub continued

      3:30
    • 5. 5 - Strongly typed hub

      2:15
    • 6. 6 - JavaScript client

      11:12
    • 7. 7 - .NET client

      8:13
    • 8. 8 - WebSocket client

      6:09
    • 9. 9 - CORS policies

      3:41
    • 10. 10 - User authentication

      12:59
    • 11. 11 - Redis backplain

      8:39
    • 12. 12 Azure SignalR Service

      4:55
    • 13. 13 - IHubContext explained

      2:50
    • 14. 14 - Azure SignalR REST API

      4:59
    • 15. 15 - SignalR streaming

      4:26

Project Description

The goal of this project is to build a fully interactive chat application by using SignalR.

Based on the material in the class, you should be able to build an interactive chat web application that adheres to the following requirements:

  • Is based on ASP.NET Core
  • Uses SignalR hub
  • Has an interface for registering users
  • Includes user authentication
  • On its front page, has a panel where all relevant chat messages appear
  • Has text boxes and buttons that authenticated users can use to send messages to each other
  • Each message indicates which user has sent it

If you are able to build an application that satisfies all of these requirements, you already know the main fundamentals of SignalR library. However, you may want to take a step further and get your application to meet the following bonus requirements:

  • Application can be scaled between multiple instances by using either Redis backplain or Azure SignalR Service
  • When a user is authenticated, all other users are notified about it
  • A separate client application is also able to interact with your chat application and send messages to its users
  • The application has the ability to stream data in real time

In order to complete the main set of requirements, the following videos contain all the materials you need:

  • Set up your environment
  • SignalR hub overview
  • SignalR hub continued
  • Strongly typed hub
  • JavaScript client
  • User authentication

The following videos contain all the necessary material to achieve the bonus requirements:

  • .NET client
  • Redis backplain
  • Azure SignalR Service
  • IHubContext explained
  • Azure SignalR REST API

In addition, you may find these two lectures useful, so you can be aware of some non-standard use cases:

  • WebSocket client
  • CORS policies

The final submission should be a Visual Studio solution that contains the code that satisfies at least the minimum requirements.

You may want to use the code samples covering the class material, which have been provided in the following GitHub repository:

https://github.com/fiodarsazanavets/signalr-in-the-nutshell

Student Projects