Example #1
0
File: Ping.cs Project: ewin66/Forge
 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);
     }
 }
Example #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;
 }