Ejemplo n.º 1
0
 public void Apply(NetInfo info)
 {
     try {
         Assertion.Assert(info, "info)");
         info.EnsureExtended();
         for (int i = 0; i < Nodes.Count; ++i)
         {
             (info.m_nodes[i] as IInfoExtended).SetMetaData(Nodes[i]);
         }
         for (int i = 0; i < Segments.Count; ++i)
         {
             (info.m_segments[i] as IInfoExtended).SetMetaData(Segments[i]);
         }
         ApplyProps(info);
         info.SetMetedata(NetData?.Clone());
         info.UpdateMetaData();
         Log.Debug("Net Metadata restored.");
     }catch (Exception ex) {
         Log.Exception(ex);
     }
 }