void OnDiscoveryCompleted(HubDiscoreryResult hubDiscoreryResult) { DiscoveryCompleted?.Invoke(this, new HubDisoveryCompletedEventArgs(hubDiscoreryResult)); }
public HubDisoveryCompletedEventArgs(HubDiscoreryResult hubDiscoreryResult) { Result = hubDiscoreryResult; }
private void HubDiscoveryWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { HubDiscoreryResult result = e.Result as HubDiscoreryResult; OnDiscoveryCompleted(result); }