コード例 #1
0
 public void ResetSubscription()
 {
     Requested      = false;
     Responded      = false;
     ChannelId      = null;
     ConfirmedEvent = new WaitAction <bool>();
 }
コード例 #2
0
        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>();
        }
コード例 #3
0
 public UnsubscriptionRequest(int channelId)
 {
     Event          = "unsubscribe";
     ChannelId      = channelId;
     ConfirmedEvent = new WaitAction <bool>();
 }