Пример #1
0
        public ClientViewModel()
        {
            var channelFactory = new DuplexChannelFactory<IChatService>(new ClientService(), "IChatEndpoint");

            _server = channelFactory.CreateChannel();
            _this = this;
            CreateCommands();
        }
Пример #2
0
 public MainWindow()
 {
     DataContext = new ClientViewModel();
     InitializeComponent();
 }