private void OrderProcessingChangeCompleted(IAsyncResult ar) { if (OrderProcessingChange == null) { return; } OrderProcessingChange.EndInvoke(ar); }
// OrderProcessingChange public void OnOrderProcessingChange(int count) { if (OrderProcessingChange == null) { return; } this.OrdersProcessedCount = count; OrderProcessingChange.BeginInvoke(this, new EventArgs(), new AsyncCallback(OrderProcessingChangeCompleted), null); }