mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 21:10:49 +08:00 
			
		
		
		
	Merge branch 'ServiceProviderConfigurationScheme' of https://github.com/DavidLievrouw/Ocelot into DavidLievrouw-ServiceProviderConfigurationScheme
This commit is contained in:
		@@ -24,6 +24,7 @@ namespace Ocelot.AcceptanceTests
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "https",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Type = "consul",
 | 
			
		||||
                        Port = 8500
 | 
			
		||||
@@ -66,6 +67,7 @@ namespace Ocelot.AcceptanceTests
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "https",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Type = "consul",
 | 
			
		||||
                        Port = 8500
 | 
			
		||||
 
 | 
			
		||||
@@ -60,6 +60,7 @@ namespace Ocelot.AcceptanceTests
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider()
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "http",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort
 | 
			
		||||
                    }
 | 
			
		||||
 
 | 
			
		||||
@@ -61,6 +61,7 @@
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider()
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "http",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort
 | 
			
		||||
                    }
 | 
			
		||||
@@ -91,6 +92,7 @@
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider()
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "http",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort
 | 
			
		||||
                    }
 | 
			
		||||
@@ -123,6 +125,7 @@
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider()
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "http",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort
 | 
			
		||||
                    }
 | 
			
		||||
@@ -152,6 +155,7 @@
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider()
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "http",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort
 | 
			
		||||
                    }
 | 
			
		||||
@@ -184,6 +188,7 @@
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider()
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "http",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort
 | 
			
		||||
                    }
 | 
			
		||||
@@ -214,6 +219,7 @@
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider()
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "http",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort
 | 
			
		||||
                    }
 | 
			
		||||
@@ -274,6 +280,7 @@
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "http",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort
 | 
			
		||||
                    },
 | 
			
		||||
@@ -295,6 +302,7 @@
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "http",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort
 | 
			
		||||
                    }
 | 
			
		||||
 
 | 
			
		||||
@@ -83,6 +83,7 @@
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "http",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort,
 | 
			
		||||
                        Type = "consul"
 | 
			
		||||
 
 | 
			
		||||
@@ -81,6 +81,7 @@
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider()
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "http",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort
 | 
			
		||||
                    }
 | 
			
		||||
@@ -137,6 +138,7 @@
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider()
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "http",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort
 | 
			
		||||
                    }
 | 
			
		||||
@@ -180,6 +182,7 @@
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "http",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort
 | 
			
		||||
                    },
 | 
			
		||||
@@ -243,6 +246,7 @@
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider()
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "http",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort
 | 
			
		||||
                    },
 | 
			
		||||
@@ -302,6 +306,7 @@
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider()
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "http",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort,
 | 
			
		||||
                        Token = token
 | 
			
		||||
@@ -372,6 +377,7 @@
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider()
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "http",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort
 | 
			
		||||
                    }
 | 
			
		||||
@@ -437,6 +443,7 @@
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider()
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "http",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort,
 | 
			
		||||
                        Type = "PollConsul",
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@ namespace Ocelot.AcceptanceTests
 | 
			
		||||
    using System.Collections.Generic;
 | 
			
		||||
    using System.Net;
 | 
			
		||||
    using TestStack.BDDfy;
 | 
			
		||||
    using Xunit;
 | 
			
		||||
    using Xunit;
 | 
			
		||||
 | 
			
		||||
    public class SslTests : IDisposable
 | 
			
		||||
    {
 | 
			
		||||
@@ -118,4 +118,4 @@ namespace Ocelot.AcceptanceTests
 | 
			
		||||
            _steps.Dispose();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -74,6 +74,7 @@
 | 
			
		||||
                {
 | 
			
		||||
                    ServiceDiscoveryProvider = new FileServiceDiscoveryProvider()
 | 
			
		||||
                    {
 | 
			
		||||
                        Scheme = "https",
 | 
			
		||||
                        Host = "localhost",
 | 
			
		||||
                        Port = consulPort
 | 
			
		||||
                    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user