Beispiel #1
0
 public void SendMessage(Identifier identifier, byte[] messageData)
 {
     if (knownClients.ContainsKey(identifier)) {
         // Send message
     } else {
         // Forward message upwards
     }
 }
Beispiel #2
0
        public void RegisterClient(Identifier identifier)
        {
            ClientStatus status = null;
            if (!sessionClients.TryGetValue(identifier, out status)) {
                status = new ClientStatus {
                    Identifier = identifier
                };
                sessionClients[identifier] = status;
            }

            status.Active = true;
            status.LastUpdate = DateTime.UtcNow;
            status.StatusData = null;
        }
Beispiel #3
0
 public void UnregisterClient(Identifier identifier)
 {
     throw new NotImplementedException();
 }
Beispiel #4
0
 public void SetStatus(Identifier identifier, byte[] statusData)
 {
 }