Exemple #1
0
        public void Dispose()
        {
            if (!_disposed)
            {
                foreach (ShapeWaitSet waitSet in _shapeWaitSets)
                {
                    waitSet.Dispose();
                }

                _shapeWaitSets.Clear();

                foreach (ShapeDynamic shape in _shapeDynamics)
                {
                    shape.Dispose();
                }

                _shapeDynamics.Clear();

                if (_participant != null)
                {
                    _participant.DeleteContainedEntities();
                    _domainFactory.DeleteParticipant(_participant);
                }

                TransportRegistry.Instance.Release();
                TransportRegistry.Close();
                ParticipantService.Instance.Shutdown();

                _disposed = true;
            }
        }
Exemple #2
0
        public static void AssemblyCleanup()
        {
            _supportProcess.KillProcess(_infoProcess);
            if (File.Exists(INFOREPO_IOR))
            {
                File.Delete(INFOREPO_IOR);
            }

            TransportRegistry.Instance.Release();
            Assert.IsTrue(TransportRegistry.Instance.Released);
            TransportRegistry.Close();
            ParticipantService.Instance.Shutdown();
            Assert.IsTrue(ParticipantService.Instance.IsShutdown);

            Ace.Fini();
        }