public void ResetSubscription() { Requested = false; Responded = false; ChannelId = null; ConfirmedEvent = new WaitAction <bool>(); }
protected SubscriptionRequest() { Event = "subscribe"; var attr = ((SubscriptionChannelAttribute)GetType().GetCustomAttributes(typeof(SubscriptionChannelAttribute), true)[0]); Channel = attr.ChannelName; EventType = attr.EventType; EventTypeAnnounced = attr.EventTypeAnnounced; ConfirmedEvent = new WaitAction <bool>(); }
public UnsubscriptionRequest(int channelId) { Event = "unsubscribe"; ChannelId = channelId; ConfirmedEvent = new WaitAction <bool>(); }