예제 #1
0
 void OnAddOrUpdateClientReceived(Guid senderClientId)
 {
     clientTable.AddOrUpdate(senderClientId);
     if (RemoteClientUpdated != null)
     {
         ClientWithVirtualHostSettingEventArgs e = new ClientWithVirtualHostSettingEventArgs(senderClientId, Guid.Empty, null);
         RemoteClientUpdated(this, e);
     }
 }
예제 #2
0
 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));
             }
         }
     }
 }