Using Channel class for pub/sub design in C# (System.Threading.Channels)

preview_player
Показать описание
C# Threadding channel can be used for implementing decoupled applications through producer/consumer design for in-process data communication.

00:00 - Introduction
00:45 - Creating a new Channel
01:32 - Unbounded channel details
03:55 - Bounded channel details
05:40 - FullMode property
06:30 - Item dropped callback
07:55 - Creating data producer and data consumer
08:40 - How to read messages from a channel
10:30 - How to write messages into a channel
11:40 - Debugging the application to demonstrate the channel implementation

#csharp #dotnet #channel #dotnet7 #csharp11

Some of my popular videos:

Рекомендации по теме
Комментарии
Автор

So that Channel class was introduced for supporting the pattern producer consumer between an ApDomain/process threads?

thedacian
Автор

When to use Channel and what projects perfect for this?

AzZaph
Автор

Can we use it in the reader as a separate application and the writer as a separate application?

sivakumarr