Exemplo n.º 1
0
 internal void Add(Microsoft.ReportingServices.ReportProcessing.DataSource dataSourceDef)
 {
     try
     {
         if (m_lockAdd)
         {
             Monitor.Enter(m_collection);
         }
         if (!m_collection.ContainsKey(dataSourceDef.Name))
         {
             m_collection.Add(dataSourceDef.Name, new DataSourceImpl(dataSourceDef));
         }
     }
     finally
     {
         if (m_lockAdd)
         {
             Monitor.Exit(m_collection);
         }
     }
 }
 internal DataSourceImpl(Microsoft.ReportingServices.ReportProcessing.DataSource dataSourceDef)
 {
     m_dataSource = dataSourceDef;
 }