protected override IClientConnectionHost CreateClientConnectionHost(string pipeName)
 {
     var port = int.Parse(pipeName);
     var ipAddress = IPAddress.Parse(DefaultAddress);
     var endPoint = new IPEndPoint(ipAddress, port: port);
     var clientDirectory = AppContext.BaseDirectory;
     var compilerHost = new CoreClrCompilerServerHost(clientDirectory);
     var connectionHost = new TcpClientConnectionHost(compilerHost, endPoint);
     return connectionHost;
 }
Пример #2
0
 public static void Main(string[] args)
 {
     var ipAddress = IPAddress.Parse("127.0.0.1");
     var endPoint = new IPEndPoint(ipAddress, port: 12000);
     var clientDirectory = AppContext.BaseDirectory;
     var compilerHost = new CoreClrCompilerServerHost(clientDirectory);
     var connectionHost = new TcpClientConnectionHost(compilerHost, endPoint);
     var serverDispatcher = new ServerDispatcher(connectionHost);
     serverDispatcher.ListenAndDispatchConnections(keepAlive: null, cancellationToken: CancellationToken.None);
 }
Пример #3
0
        public static void Main(string[] args)
        {
            var ipAddress        = IPAddress.Parse("127.0.0.1");
            var endPoint         = new IPEndPoint(ipAddress, port: 12000);
            var clientDirectory  = AppContext.BaseDirectory;
            var compilerHost     = new CoreClrCompilerServerHost(clientDirectory);
            var connectionHost   = new TcpClientConnectionHost(compilerHost, endPoint);
            var serverDispatcher = new ServerDispatcher(connectionHost);

            serverDispatcher.ListenAndDispatchConnections(keepAlive: null, cancellationToken: CancellationToken.None);
        }
        protected override IClientConnectionHost CreateClientConnectionHost(string pipeName)
        {
            var port            = int.Parse(pipeName);
            var ipAddress       = IPAddress.Parse(DefaultAddress);
            var endPoint        = new IPEndPoint(ipAddress, port: port);
            var clientDirectory = AppContext.BaseDirectory;
            var compilerHost    = new CoreClrCompilerServerHost(clientDirectory);
            var connectionHost  = new TcpClientConnectionHost(compilerHost, endPoint);

            return(connectionHost);
        }