CortanaCommandServer.ServerViewModel.ServerViewModel C# (CSharp) Méthode

ServerViewModel() public méthode

public ServerViewModel ( ) : CortanaCommandCore.Model
Résultat CortanaCommandCore.Model
        public ServerViewModel()
        {
            StartServerCommand = new RelayCommand(async()=>
            {
                await StartServerAsync();
            });

            StopServerCommand = new RelayCommand(()=>
            {
                if(client != null)
                {
                    client.Close();
                }
                if (listner != null)
                {
                    listner.Stop();
                    listner = null;
                }
            });

            LogList = new ObservableCollection<string>();
            Setting = new ServerSetting();
        }