Esempio n. 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);
        }
        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);
        }
Esempio n. 3
0
 public InProcessServer(string assemblyName)
 {
     this.url         = "http://localhost:" + random.Next(5000, 14000).ToString();
     this.backChannel = this.Start(assemblyName);
 }
 public InProcessServer(string assemblyName)
 {
     this.url = "http://localhost:" + random.Next(5000, 14000).ToString();
     this.backChannel = this.Start(assemblyName);
 }
Esempio n. 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);
 }