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"); }
/// <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"); }
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"); }