public string ApplyUpdates(Delta delta)
        {
            string updateResult = "Apply Updates Report:\r\n";

            System.Globalization.CultureInfo culture = Thread.CurrentThread.CurrentCulture;
            Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");

            if ((delta != null) && (delta.NumberOfOperations != 0))
            {
                //// NetworkModelService->ApplyUpdates
                updateResult = ProxyToTransactionManager.UpdateSystem(delta).ToString();
            }

            Thread.CurrentThread.CurrentCulture = culture;
            return(updateResult);
        }
Exemple #2
0
        public string ApplyUpdates(Delta delta)
        {
            string updateResult = "Apply Updates Report:\r\n";

            System.Globalization.CultureInfo culture = Thread.CurrentThread.CurrentCulture;
            Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");

            if ((delta != null) && (delta.NumberOfOperations != 0))
            {
                //// NetworkModelService->ApplyUpdates
                //updateResult = ProxyToTransactionManager.UpdateSystem(delta).ToString();
                //call Transaction manager
                //updateResult = GdaQueryProxy.ApplyUpdate(delta).ToString();
                //  updateResult = dispatcherClient.InvokeWithRetry(client => client.Channel.UpdateSystem(delta)).ToString();
                ProxyToTransactionManager.UpdateSystem(delta).ToString();
            }

            Thread.CurrentThread.CurrentCulture = culture;
            return(updateResult);
        }