public SignalrService() { connection = new HubConnection(url); hubProxy = connection.CreateHubProxy("ordersHub"); hubProxy.On("UpdateOrders", () => UpdateOrders?.Invoke()); connection.Start(); }
private void ItemOrdersView_EnabledChanged(object sender, EventArgs e) { // Update list UpdateOrders?.Invoke(this, EventArgs.Empty); }