コード例 #1
0
        public DesignTimeHostProjectCompiler(IApplicationShutdown shutdown, IFileWatcher watcher, IRuntimeOptions runtimeOptions)
        {
            // Using this ctor because it works on mono, this is hard coded to ipv4
            // right now. Mono will eventually have the dualmode overload
            var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
            socket.Connect(new IPEndPoint(IPAddress.Loopback, runtimeOptions.CompilationServerPort.Value));

            var networkStream = new NetworkStream(socket);

            _compiler = new DesignTimeHostCompiler(shutdown, watcher, networkStream);
        }
コード例 #2
0
        public DesignTimeHostProjectCompiler()
        {
            // Using this ctor because it works on mono, this is hard coded to ipv4
            // right now. Mono will eventually have the dualmode overload
            var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
            socket.Connect(new IPEndPoint(IPAddress.Loopback, Project.DesignTimeCompilerPort));

            var networkStream = new NetworkStream(socket);

            _compiler = new DesignTimeHostCompiler(networkStream);
        }
コード例 #3
0
        public DesignTimeHostProjectCompiler(IApplicationShutdown shutdown, IFileWatcher watcher, IRuntimeOptions runtimeOptions)
        {
            // Using this ctor because it works on mono, this is hard coded to ipv4
            // right now. Mono will eventually have the dualmode overload
            var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);

            socket.Connect(new IPEndPoint(IPAddress.Loopback, runtimeOptions.CompilationServerPort.Value));

            var networkStream = new NetworkStream(socket);

            _compiler = new DesignTimeHostCompiler(shutdown, watcher, networkStream);
        }
コード例 #4
0
        public DesignTimeHostProjectCompiler()
        {
            // Using this ctor because it works on mono, this is hard coded to ipv4
            // right now. Mono will eventually have the dualmode overload
            var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);

            socket.Connect(new IPEndPoint(IPAddress.Loopback, Project.DesignTimeCompilerPort));

            var networkStream = new NetworkStream(socket);

            _compiler = new DesignTimeHostCompiler(networkStream);
        }
コード例 #5
0
 public DesignTimeHostProjectReferenceProvider(IDesignTimeHostCompiler compiler)
 {
     _compiler = compiler;
 }
コード例 #6
0
 public DesignTimeHostProjectReferenceProvider(IDesignTimeHostCompiler compiler)
 {
     _compiler = compiler;
 }