Ejemplo n.º 1
0
 /// <summary>
 /// Unregisters the given dependency.
 /// </summary>
 /// <param name="dependency">The dependency.</param>
 public void UnregisterDependency(UpdateFromHistoryDependency dependency)
 {
     if (dependency != null)
     {
         m_Dependencies.Remove(dependency);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Registers the dependency for the current change set.
        /// </summary>
        /// <param name="dependency">The dependency.</param>
        /// <exception cref="ArgumentNullException">
        ///     Thrown if <paramref name="dependency"/> is <see langword="null" />.
        /// </exception>
        public void RegisterDependency(UpdateFromHistoryDependency dependency)
        {
            {
                Lokad.Enforce.Argument(() => dependency);
            }

            if (!m_Dependencies.Contains(dependency))
            {
                m_Dependencies.Add(dependency);
            }
        }