Esempio n. 1
0
 private void ClientAccepted(object sender, ClientAcceptedEventArgs args)
 {
     Task.Run(() =>
     {
         var subscription = (SubscribeMessage)args.Channel.Receive(_subscribeMessageSerializer);
         _subscriptionManager.AddSubscription(args.Channel, subscription.Topics);
         ClientSubscribed?.Invoke(this, args);
     });
 }
Esempio n. 2
0
 internal void FireClientSubscribed(CometClient cometClient)
 {
     ClientSubscribed?.Invoke(this, new CometClientEventArgs(cometClient));
 }