public ClientViewModel() { var channelFactory = new DuplexChannelFactory<IChatService>(new ClientService(), "IChatEndpoint"); _server = channelFactory.CreateChannel(); _this = this; CreateCommands(); }
public MainWindow() { DataContext = new ClientViewModel(); InitializeComponent(); }