WIP
This commit is contained in:
parent
54b057886c
commit
7fc1ae0650
204 changed files with 4345 additions and 134 deletions
13
PlanTempus.Core/Telemetry/NotificationChannel.cs
Normal file
13
PlanTempus.Core/Telemetry/NotificationChannel.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using System.Threading.Channels;
|
||||
|
||||
namespace PlanTempus.Core.Telemetry;
|
||||
|
||||
public class NotificationChannel : IMessageChannel<string>
|
||||
{
|
||||
private readonly Channel<string> _channel = Channel.CreateUnbounded<string>();
|
||||
|
||||
public ChannelWriter<string> Writer => _channel.Writer;
|
||||
public ChannelReader<string> Reader => _channel.Reader;
|
||||
|
||||
public void Dispose() => _channel.Writer.Complete();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue