コード例 #1
0
        public override async Task RunAsync(string[] args)
        {
            Dictionary <string, string>?properties = CreateTestProperties(ref args);

            // This test kills connections, so we don't want warnings.
            properties["Ice.Warn.Connections"]    = "0";
            await using Communicator communicator = Initialize(properties, observer: Instrumentation.GetObserver());
            AllTests.Run(this, communicator, false).Shutdown();
        }
コード例 #2
0
ファイル: Collocated.cs プロジェクト: mreinart/ice
        public static async Task <int> Main(string[] args)
        {
            ICommunicatorObserver?      observer   = Instrumentation.GetObserver();
            Dictionary <string, string> properties = CreateTestProperties(ref args);

            properties["Ice.Warn.Dispatch"] = "0";
            // This test kills connections, so we don't want warnings.
            properties["Ice.Warn.Connections"] = "0";

            await using var communicator = CreateCommunicator(properties, observer: observer);
            return(await RunTestAsync <Collocated>(communicator, args));
        }
コード例 #3
0
        public static async Task <int> Main(string[] args)
        {
            Dictionary <string, string> properties = CreateTestProperties(ref args);

            // This test kills connections, so we don't want warnings.
            properties["Ice.Warn.Connections"] = "0";

            await using var communicator = CreateCommunicator(properties, observer: Instrumentation.GetObserver());
            await communicator.ActivateAsync();

            return(await RunTestAsync <Client>(communicator, args));
        }
コード例 #4
0
ファイル: Collocated.cs プロジェクト: wubo2018/ice
        public override async Task RunAsync(string[] args)
        {
            ICommunicatorObserver?      observer   = Instrumentation.GetObserver();
            Dictionary <string, string>?properties = CreateTestProperties(ref args);

            properties["Ice.Warn.Dispatch"] = "0";
            // This test kills connections, so we don't want warnings.
            properties["Ice.Warn.Connections"]    = "0";
            await using Communicator communicator = Initialize(properties, observer: observer);

            communicator.SetProperty("TestAdapter.Endpoints", GetTestEndpoint(0));
            communicator.CreateObjectAdapter("TestAdapter").Add("retry", new Retry());
            await AllTests.Run(this, communicator, true).ShutdownAsync();
        }
コード例 #5
0
ファイル: Client.cs プロジェクト: rtxlab/ice
        public override async Task RunAsync(string[] args)
        {
            Dictionary <string, string>?properties = CreateTestProperties(ref args);

            properties["Ice.RetryIntervals"] = "0 1 10 1";

            // This test kills connections, so we don't want warnings.
            properties["Ice.Warn.Connections"]    = "0";
            await using Communicator communicator = Initialize(properties, observer: Instrumentation.GetObserver());
            // Configure a second communicator for the invocation timeout + retry test, we need to configure a large
            // retry interval to avoid time-sensitive failures.
            properties["Ice.RetryIntervals"]       = "0 1 10000";
            await using Communicator communicator2 = Initialize(properties, observer: Instrumentation.GetObserver());
            AllTests.Run(this, communicator, communicator2, GetTestProxy("retry", 0)).Shutdown();
        }
コード例 #6
0
        public override async Task RunAsync(string[] args)
        {
            var properties = CreateTestProperties(ref args);

            properties["Ice.RetryIntervals"] = "0 1 10 1";

            //
            // This test kills connections, so we don't want warnings.
            //
            properties["Ice.Warn.Connections"] = "0";
            await using var communicator       = Initialize(properties, observer: Instrumentation.GetObserver());
            //
            // Configure a second communicator for the invocation timeout
            // + retry test, we need to configure a large retry interval
            // to avoid time-sensitive failures.
            //
            properties["Ice.RetryIntervals"] = "0 1 10000";
            await using var communicator2    = Initialize(properties, observer: Instrumentation.GetObserver());
            AllTests.allTests(this, communicator, communicator2, $"retry:{GetTestEndpoint(0)}").shutdown();
        }
コード例 #7
0
ファイル: Collocated.cs プロジェクト: yuweiApp/ice
        public override void Run(string[] args)
        {
            var observer   = Instrumentation.GetObserver();
            var properties = CreateTestProperties(ref args);

            properties["Ice.RetryIntervals"] = "0 1 10 1";
            properties["Ice.Warn.Dispatch"]  = "0";
            //
            // This test kills connections, so we don't want warnings.
            //
            properties["Ice.Warn.Connections"] = "0";
            using var communicator             = Initialize(properties, observer: observer);
            //
            // Configure a second communicator for the invocation timeout
            // + retry test, we need to configure a large retry interval
            // to avoid time-sensitive failures.
            //
            properties["Ice.RetryIntervals"] = "0 1 10000";
            using var communicator2          = Initialize(properties, observer: observer);
            communicator.CreateObjectAdapter().Add("retry", new Retry());
            communicator2.CreateObjectAdapter().Add("retry", new Retry());
            AllTests.allTests(this, communicator, communicator2, "retry").shutdown();
        }
コード例 #8
0
        public override async Task RunAsync(string[] args)
        {
            ICommunicatorObserver?      observer   = Instrumentation.GetObserver();
            Dictionary <string, string>?properties = CreateTestProperties(ref args);

            properties["Ice.RetryIntervals"] = "0 1 10 1";
            properties["Ice.Warn.Dispatch"]  = "0";
            //
            // This test kills connections, so we don't want warnings.
            //
            properties["Ice.Warn.Connections"]    = "0";
            await using Communicator communicator = Initialize(properties, observer: observer);
            //
            // Configure a second communicator for the invocation timeout
            // + retry test, we need to configure a large retry interval
            // to avoid time-sensitive failures.
            //
            properties["Ice.RetryIntervals"]        = "0 1 10000";
            await using Communicator? communicator2 = Initialize(properties, observer: observer);
            communicator.CreateObjectAdapter().Add("retry", new Retry());
            communicator2.CreateObjectAdapter().Add("retry", new Retry());
            await AllTests.Run(this, communicator, communicator2, "retry").ShutdownAsync();
        }