コード例 #1
0
        public InProcessServer(string assemblyName, Func <IWebHostBuilder, IWebHostBuilder> configureHost = null)
        {
            this.configureHost = configureHost;
            var machineName = Environment.GetEnvironmentVariable("COMPUTERNAME");

            this.url         = "http://" + machineName + ":" + random.Next(5000, 14000).ToString();
            this.backChannel = this.Start(assemblyName);
        }
コード例 #2
0
        public InProcessServer(string assemblyName, Func <IWebHostBuilder, IWebHostBuilder> configureHost = null)
        {
            this.configureHost = configureHost;
            // localhost instead of machine name, as its not possible to get machine name when running non windows.
            var machineName = "localhost";

            this.url         = "http://" + machineName + ":" + random.Next(5000, 14000).ToString();
            this.backChannel = this.Start(assemblyName);
        }
コード例 #3
0
 public InProcessServer(string assemblyName)
 {
     this.url         = "http://localhost:" + random.Next(5000, 14000).ToString();
     this.backChannel = this.Start(assemblyName);
 }
コード例 #4
0
 public InProcessServer(string assemblyName)
 {
     this.url = "http://localhost:" + random.Next(5000, 14000).ToString();
     this.backChannel = this.Start(assemblyName);
 }
コード例 #5
0
 public InProcessServer(string assemblyName, Func <IWebHostBuilder, IWebHostBuilder> configureHost = null)
 {
     this.configureHost = configureHost;
     this.url           = "http://localhost:" + random.Next(5000, 14000).ToString();
     this.backChannel   = this.Start(assemblyName);
 }