/// <summary> /// Adds <see cref="IPartInterceptionCriteria"/> instance. /// </summary> /// <param name="partInterceptionCriteria">Criteria to be added.</param> /// <returns><see cref="InterceptionConfiguration"/> instance to enable fluent configuration.</returns> public InterceptionConfiguration AddInterceptionCriteria(IPartInterceptionCriteria partInterceptionCriteria) { if (partInterceptionCriteria == null) throw new ArgumentNullException("partInterceptionCriteria"); this.interceptionCriteria.Add(partInterceptionCriteria); return this; }
/// <summary> /// Adds <see cref="IPartInterceptionCriteria"/> instance. /// </summary> /// <param name="partInterceptionCriteria">Criteria to be added.</param> /// <returns><see cref="InterceptionConfiguration"/> instance to enable fluent configuration.</returns> public InterceptionConfiguration AddInterceptionCriteria(IPartInterceptionCriteria partInterceptionCriteria) { if (partInterceptionCriteria == null) { throw new ArgumentNullException("partInterceptionCriteria"); } this.interceptionCriteria.Add(partInterceptionCriteria); return(this); }