private void RaiseSendX10Result(X10EventArgs e) { //do not confuse our consumer by calling out to it using multiple threads at the same time lock (syncEventOut) if (SendX10Result != null) { try { SendX10Result(this, e); } catch { } } }
private void RaiseReceivedX10(X10EventArgs e) { //do not confuse our consumer by calling out to it using multiple threads at the same time lock (syncEventOut) if (ReceivedX10 != null) { try { ReceivedX10(this, e); } catch { } } }
private void RaiseSendX10Result(X10EventArgs e) { //do not confuse our consumer by calling out to it using multiple threads at the same time lock(syncEventOut) if (SendX10Result != null) try { SendX10Result(this, e); } catch { } }
private void RaiseReceivedX10(X10EventArgs e) { //do not confuse our consumer by calling out to it using multiple threads at the same time lock(syncEventOut) if (ReceivedX10 != null) try { ReceivedX10(this, e); } catch { } }