private void OnPingResult(PingResultEnum result) { if (SyncEventRaiser) { Raiser.CallDelegatorBySync(EventPingResult, new object[] { this, new PingResultEventArgs(result) }, UIInvocationOnEvents, ParallelInvocationOnEvents); } else { Raiser.CallDelegatorByAsync(EventPingResult, new object[] { this, new PingResultEventArgs(result) }, UIInvocationOnEvents, ParallelInvocationOnEvents); } }
/// <summary> /// Initializes a new instance of the <see cref="PingResultEventArgs"/> class. /// </summary> /// <param name="result">The result.</param> internal PingResultEventArgs(PingResultEnum result) { this.mPingResultType = result; }