示例#1
0
        private async void Connect(object parameter)
        {
            Reagents.Clear();

            _duplexClient = new DuplexReagentClient(new InstanceContext(Reagents));
            await _duplexClient.ConnectAsync();

            _isConnected = true;

            // Forcing the CommandManager to raise the RequerySuggested event
            CommandManager.InvalidateRequerySuggested();
        }