Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 /// <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;
 }