コード例 #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();
 }