Пример #1
0
 public void SetupSchema(CachedSnapshot snapshot, DataRenderer dataRenderer)
 {
     using (Profiling.GetMarker(Profiling.MarkerId.CreateSnapshotSchema).Auto())
     {
         m_Snapshot = snapshot;
         renderer   = new SnapshotDataRenderer(dataRenderer, m_Snapshot);
         CreateTables(m_Snapshot.CrawledData);
     }
 }
Пример #2
0
 public SnapshotDataRenderer(DataRenderer dataRenderer, CachedSnapshot d)
 {
     m_BaseRenderer = dataRenderer;
     m_Snapshot     = d;
     foreach (var tr in dataRenderer.m_TypeRenderer)
     {
         int i = m_Snapshot.typeDescriptions.typeDescriptionName.FindIndex(x => x == tr.Key);
         if (i >= 0)
         {
             m_TypeRenderer[i] = tr.Value;
         }
     }
 }