Runt.DesignTimeHost.Host.Start C# (CSharp) 메소드

Start() 개인적인 메소드

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

Same methods

Host::Start ( string runtimePath ) : void

Usage Example

예제 #1
0
        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();
        }