Example #1
0
        public SignalrService()
        {
            connection = new HubConnection(url);
            hubProxy   = connection.CreateHubProxy("ordersHub");

            hubProxy.On("UpdateOrders", () => UpdateOrders?.Invoke());

            connection.Start();
        }
Example #2
0
 private void ItemOrdersView_EnabledChanged(object sender, EventArgs e)
 {
     // Update list
     UpdateOrders?.Invoke(this, EventArgs.Empty);
 }