Runt.DesignTimeHost.Host.Start C# (CSharp) Method

Start() private method

private Start ( ) : void
return void
        private void Start()
        {
            var port = FreeTcpPort();
            StartRuntime(port);
        }

Same methods

Host::Start ( string runtimePath ) : void

Usage Example

コード例 #1
0
ファイル: WorkspaceViewModel.cs プロジェクト: khellang/Runt
        public WorkspaceViewModel(ShellViewModel shell, string path)
            : base(null, path)
        {
            var runtime = Kvm.GetRuntime(shell.SelectedRuntime);
            _host = new Host(path);
            _host.Connected += HostConnected;
            _host.Configurations += HostConfigurations;
            _host.References += HostReferences;
            _host.Start(runtime);

            _watcher = new FileSystemWatcher(path);
            _watcher.NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.FileName | NotifyFilters.Size | NotifyFilters.DirectoryName | NotifyFilters.LastAccess;
            _watcher.Filter = "*.*";
            _watcher.Changed += FileChanged;

            _workspace = new CustomWorkspace();
        }