Ejemplo n.º 1
0
        public override void CanClose(Action <bool> callback)
        {
            eventAggregator.Publish(new ExitingEvent());

            persistanceManager.Save();
            base.CanClose(callback);
        }
Ejemplo n.º 2
0
        public void Handle(ExitingEvent message)
        {
            persistanceManager.Save();
            var layoutSerializer = new XmlLayoutSerializer(DockingManager);

            layoutSerializer.Serialize(paths.GetDataPath(dockingConfig));
        }
Ejemplo n.º 3
0
        private void Stop()
        {
            System.Console.WriteLine("Stopping script parser");
            scriptEngine.Stop();

            persistanceManager.Save();
            waitUntilStopped.Set();
        }
Ejemplo n.º 4
0
        protected override IEnumerable <IResult> CanClose()
        {
            var handleDirtyResults = Scripts.SelectMany(HandleScriptClosing);

            foreach (var result in handleDirtyResults)
            {
                yield return(result);
            }

            eventAggregator.Publish(new ExitingEvent());

            persistanceManager.Save();
            var layoutSerializer = new XmlLayoutSerializer(DockingManager);

            layoutSerializer.Serialize(paths.GetDataPath(dockingConfig));
        }