Exemple #1
0
 public async Task SubscribeAsync(IEnumerable <String> subscriptionKeys, SubscriptionScope scope = SubscriptionScope.Content)
 {
     await this.SendPayloadAsync(new Subscribe.Payload
     {
         Type = PayloadType.Subscribe,
         SubscriptionScope = scope,
         SubscriptionKeys  = subscriptionKeys
     });
 }
Exemple #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            _subscriptionScope = _eventPipe.NewSubscriptionScope();

            var controller = new TriggerController(_eventPipe, triggerButton);
            _subscriptionScope.Subscribe<TriggerEnabled>(controller.Handle);
            _subscriptionScope.Subscribe<TriggerDisabled>(controller.Handle);

            triggerEnabledCheckBox.Checked = triggerButton.Enabled;
        }
Exemple #3
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            _subscriptionScope = _eventPipe.NewSubscriptionScope();


            var controller = new TriggerController(_eventPipe, triggerButton);

            _subscriptionScope.Subscribe <TriggerEnabled>(controller.Handle);
            _subscriptionScope.Subscribe <TriggerDisabled>(controller.Handle);

            triggerEnabledCheckBox.Checked = triggerButton.Enabled;
        }
Exemple #4
0
 public SubscriptionOptionsAttribute(ThreadOption option, SubscriptionScope scope = SubscriptionScope.EventType)
 {
     Option = option;
 }