Esempio n. 1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializer
 /// </summary>
 /// <param name="cache">The instance of the DB connection representing the channel
 /// through which notifications come</param>
 /// <param name="tag">The property tag that the caller wants to be notified about
 /// </param>
 /// ------------------------------------------------------------------------------------
 internal void Init(FdoCache cache, int tag)
 {
     m_cache = cache;
     if (cache.AddChangeWatcher(this))
     {
         m_sda = m_cache.MainCacheAccessor;
         m_sda.AddNotification(this);                 // register this in the ISilDataAccess
     }
     m_Tag = tag;
 }
Esempio n. 2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializer
		/// </summary>
		/// <param name="cache">The instance of the DB connection representing the channel
		/// through which notifications come</param>
		/// <param name="tag">The property tag that the caller wants to be notified about
		/// </param>
		/// ------------------------------------------------------------------------------------
		internal void Init(FdoCache cache, int tag)
		{
			m_cache = cache;
			if (cache.AddChangeWatcher(this))
			{
				m_sda = m_cache.MainCacheAccessor;
				m_sda.AddNotification(this); // register this in the ISilDataAccess
			}
			m_Tag = tag;
		}