Пример #1
0
        public UpdateResult Apply(Delta delta)
        {
            NetworkModel networkModelCopy = new NetworkModel(networkModel);
            UpdateResult updateResult     = networkModel.ApplyDelta(delta);

            if (updateResult.Result == ResultType.Failed)
            {
                networkModel = networkModelCopy;
                return(updateResult);
            }

            return(updateResult);
        }
Пример #2
0
 public UpdateResult ApplyUpdate(Delta delta)
 {
     return(nm.ApplyDelta(delta));
 }