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); }); }
internal void FireClientSubscribed(CometClient cometClient) { ClientSubscribed?.Invoke(this, new CometClientEventArgs(cometClient)); }