Exemple #1
0
        public override void Run(string[] args)
        {
            using Communicator communicator = Initialize(ref args);
            communicator.SetProperty("TestAdapter.Endpoints", GetTestEndpoint(0));
            ObjectAdapter adapter = communicator.CreateObjectAdapter("TestAdapter");
            var           initial = new InitialI(adapter);

            adapter.Add("initial", initial);
            adapter.Activate();
            ServerReady();
            communicator.WaitForShutdown();
        }
Exemple #2
0
        public override async Task RunAsync(string[] args)
        {
            await Communicator.ActivateAsync();

            Communicator.SetProperty("TestAdapter.Endpoints", GetTestEndpoint(0));

            ObjectAdapter adapter = Communicator.CreateObjectAdapter("TestAdapter");
            var           initial = new InitialI(adapter);

            adapter.Add("initial", initial);
            await adapter.ActivateAsync();

            ServerReady();
            await Communicator.ShutdownComplete;
        }