public void OnConnect(IConnection connection) { Console.WriteLine("Connected to eFTL server at " + url); // Create the map. IKVMap map = connection.CreateKVMap(name); // Asynchronously get the key-value pair. map.Remove(key, new KVMapListener(connection)); }
public void OnConnect(IConnection connection) { Console.WriteLine("Connected to eFTL server at " + url); // Create the message value. IMessage msg = connection.CreateMessage(); msg.SetString("text", text); // Populate additional fields msg.SetLong("long", (long)101); msg.SetDateTime("time", DateTime.Now); // Create the map. IKVMap map = connection.CreateKVMap(name); // Asynchronously set the key-value pair. map.Set(key, msg, new KVMapListener(connection)); }