コード例 #1
0
ファイル: UsageFixture.cs プロジェクト: yonglehou/Halibut
        public void OctopusCanDiscoverTentacle()
        {
            using (var octopus = new HalibutRuntime(services, Certificates.Octopus))
                using (var tentacleListening = new HalibutRuntime(services, Certificates.TentacleListening))
                {
                    var tentaclePort = tentacleListening.Listen();

                    var info = octopus.Discover(new Uri("https://localhost:" + tentaclePort));
                    Assert.That(info.RemoteThumbprint, Is.EqualTo(Certificates.TentacleListeningPublicThumbprint));
                }
        }
コード例 #2
0
ファイル: UsageFixture.cs プロジェクト: aanufriyev/Halibut
        public void OctopusCanDiscoverTentacle()
        {
            using (var octopus = new HalibutRuntime(services, Certificates.Octopus))
            using (var tentacleListening = new HalibutRuntime(services, Certificates.TentacleListening))
            {
                var tentaclePort = tentacleListening.Listen();

                var info = octopus.Discover(new Uri("https://localhost:" + tentaclePort));
                Assert.That(info.RemoteThumbprint, Is.EqualTo(Certificates.TentacleListeningPublicThumbprint));
            }
        }
コード例 #3
0
ファイル: UsageFixture.cs プロジェクト: willemda/Halibut
        public void OctopusCanDiscoverTentacle()
        {
            var services = GetDelegateServiceFactory();

            using (var octopus = new HalibutRuntime(services, Certificates.Octopus))
                using (var tentacleListening = new HalibutRuntime(services, Certificates.TentacleListening))
                {
                    var tentaclePort = tentacleListening.Listen();

                    var info = octopus.Discover(new Uri("https://localhost:" + tentaclePort));
                    info.RemoteThumbprint.Should().Be(Certificates.TentacleListeningPublicThumbprint);
                }
        }