Raised when a client is subscribing to a channel
Inheritance: CancellableEvent, IChannelEvent
Exemple #1
0
 public void CheckSubscription(SubscribingEvent ev)
 {
     if (ev.Client.ID.Contains("A"))
     {
         ev.Cancel = true;
         ev.CancellationReason = "You've been arbitrarily stopped from joining this channel";
     }
 }
 private static ICancellableEvent PublishSubscribingEvent(Message request, IClient client)
 {
     SubscribingEvent subscribingEvent = new SubscribingEvent(client, request.subscription);
     EventHub.Publish(subscribingEvent);
     return subscribingEvent;
 }