public void Commit()
        {
            Console.WriteLine("Pozvan je Commit na CommunicationEngine-u");

            ITransactionCallback callback = OperationContext.Current.GetCallbackChannel <ITransactionCallback>();

            callback.CallbackCommit("Uspjesno je prosao commit na CommunicationEngine-u");
        }
示例#2
0
        /// <summary>
        /// Setting Configuration to new file.
        /// </summary>
        public void Commit()
        {
            Console.WriteLine("Pozvan je Commit na SCADA");
            ITransactionCallback callback = OperationContext.Current.GetCallbackChannel <ITransactionCallback>();

            ScadaModelParser parser = new ScadaModelParser();

            parser.SwapConfigs(currentConfigFile, modifiedConfigFile);

            callback.CallbackCommit("Commited on SCADA");
        }
示例#3
0
        public void Commit()
        {
            Console.WriteLine("Pozvan je Commit na NMS-u");

            if (GenericDataAccess.NewNetworkModel != null)
            {
                GenericDataAccess.NetworkModel = GenericDataAccess.NewNetworkModel;
                ResourceIterator.NetworkModel  = GenericDataAccess.NewNetworkModel;
            }

            ITransactionCallback callback = OperationContext.Current.GetCallbackChannel <ITransactionCallback>();

            callback.CallbackCommit("Uspjesno je prosao commit na NMS-u");
        }
        public void Commit()
        {
            Console.WriteLine("Pozvan je Commit na DMS-u");
            DMSService.Instance.Tree = newTree;
            if (DMSService.updatesCount >= 2)
            {
                Publisher            publisher = new Publisher();
                List <UIUpdateModel> update    = new List <UIUpdateModel>();
                Source s = (Source)DMSService.Instance.Tree.Data[DMSService.Instance.Tree.Roots[0]];
                update.Add(new UIUpdateModel(true, s.ElementGID));

                publisher.PublishUpdate(update);
            }

            ITransactionCallback callback = OperationContext.Current.GetCallbackChannel <ITransactionCallback>();

            callback.CallbackCommit("Uspjesno je prosao commit na DMS-u");
        }