private async Task OnMessage(object sender, SubscriberEventArgs args)
 {
     await _producer.PublishMessageAsync(args.Message, _cancellationToken);
 }
 static void SSE_SubscriberChanged(object sender, SubscriberEventArgs e)
 {
     ClientsController.Send(e.SubscriberCount.ToString());
 }
Beispiel #3
0
 private async Task OnMessageAsync(object sender, SubscriberEventArgs args)
 {
     await _producer.PublishAsync(args.Message);
 }
 static void SSE_SubscriberChanged(object sender, SubscriberEventArgs e)
 {
     SSE.Value.Send(e.SubscriberCount.ToString());
 }