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); }
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); }
public DesignTimeHostProjectReferenceProvider(IDesignTimeHostCompiler compiler) { _compiler = compiler; }