void OnAddOrUpdateClientReceived(Guid senderClientId) { clientTable.AddOrUpdate(senderClientId); if (RemoteClientUpdated != null) { ClientWithVirtualHostSettingEventArgs e = new ClientWithVirtualHostSettingEventArgs(senderClientId, Guid.Empty, null); RemoteClientUpdated(this, e); } }
void FromAdapter_AddClient(Guid[] clientId) { foreach (var client in clientId) { if (client != this.clientId && clientTable.Get(client) == null) { clientTable.AddOrUpdate(client); if (isStarted) { RemoteClientUpdated?.Invoke(this, new ClientWithVirtualHostSettingEventArgs(client, Guid.Empty, null)); } } } }