AspNetCore.Docs/aspnetcore/signalr/background-service/samples/6.0
Dave Pringle 4e2c57e60a
Add SignalR background service 6.0 sample (#25361)
Co-authored-by: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com>
Co-authored-by: Kirk Larkin <6025110+serpent5@users.noreply.github.com>
2022-03-21 17:59:04 +00:00
..
Clients.ConsoleOne Add SignalR background service 6.0 sample (#25361) 2022-03-21 17:59:04 +00:00
Clients.ConsoleTwo Add SignalR background service 6.0 sample (#25361) 2022-03-21 17:59:04 +00:00
HubServiceInterfaces Add SignalR background service 6.0 sample (#25361) 2022-03-21 17:59:04 +00:00
Server Add SignalR background service 6.0 sample (#25361) 2022-03-21 17:59:04 +00:00
SignalRBackgroundServiceSample6.sln Add SignalR background service 6.0 sample (#25361) 2022-03-21 17:59:04 +00:00
global.json Add SignalR background service 6.0 sample (#25361) 2022-03-21 17:59:04 +00:00
readme.md Add SignalR background service 6.0 sample (#25361) 2022-03-21 17:59:04 +00:00

readme.md

ASP.NET Core SignalR background service sample

This sample consists of 4 projects:

  • A web application hosting a SignalR hub that produces output every 1 second.
  • A library containing shared interfaces and constants.
  • 2 console applications to consume the output from the web application via SignalR.

Running this sample

Start the Server, Clients.ConsoleOne, and Clients.ConsoleTwo projects with your favourite IDE, or run the following commands from this folder in separate terminals:

  • dotnet run --project Server
  • dotnet run --project Clients.ConsoleOne
  • dotnet run --project Clients.ConsoleTwo

The ConsoleOne and ConsoleTwo applications produce log output when they receive a message via SignalR.