public void TriggerVnc(Client.Model.VncModel model) { ClientVncCmd vncCommand = new ClientVncCmd() { CommandId = ClientVncCmd.ECommandId.Start, UserVncData = new VncEntry() { Identifier = model.Identifier, IpAddress = model.VncServerIp, Port = model.VncServerPort, DisplayName = model.DisplayName, } }; connectionMgr.BroadcastMessage( (int)CommandConst.MainCommandClient.Functionality, (int)CommandConst.SubCommandClient.Vnc, vncCommand); }
public override void ExecuteCommand(string userId, string command) { ClientVncCmd data = deserialize.Deserialize <ClientVncCmd>(command); if (data == null) { return; } switch (data.CommandId) { case ClientVncCmd.ECommandId.Start: StartVnc(data.UserVncData); break; default: break; } }