Exemplo n.º 1
0
 public ClientViewModel()
 {
     var channelFactory = new DuplexChannelFactory<IChattingService>(new ClientService(), "ChattingServiceEndPoint");
     _server = channelFactory.CreateChannel();
     _this = this;
     CreateCommands();
     NavigationCommands();
 }
Exemplo n.º 2
0
 public MainWindow()
 {
     InitializeComponent();
     DataContext = new ClientViewModel();
     _this = this;
 }