internal void ClientListUpdated(ClientListCommand command) { var args = new Object[] { command.AvailableClients }; Delegate d = new UpdateClientListDelegate(UpdateClientList); while (!IsHandleCreated) { Thread.Sleep(50); } Invoke(d, args); }
public virtual ClientListCommand CreateClientList(List<IClientInformation> availableClients, IInformation senderInformation) { var clientListCommand = new ClientListCommand { SenderInformation = senderInformation, AvailableClients = availableClients, }; return clientListCommand; }
public void Serialize_ClientListCommand() { var commandSerializer = new CommandSerializer(); var clientListCommand = new ClientListCommand { SenderInformation = new ServerInformation(string.Empty,string.Empty,new Version()), AvailableClients =new List<IClientInformation>(), }; commandSerializer.Serialize(clientListCommand); }