public async Task SubscribeAsync(IEnumerable <String> subscriptionKeys, SubscriptionScope scope = SubscriptionScope.Content) { await this.SendPayloadAsync(new Subscribe.Payload { Type = PayloadType.Subscribe, SubscriptionScope = scope, SubscriptionKeys = subscriptionKeys }); }
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; }
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; }
public SubscriptionOptionsAttribute(ThreadOption option, SubscriptionScope scope = SubscriptionScope.EventType) { Option = option; }