Example #1
0
        /// <summary>
        /// Visits the specified callback.
        /// </summary>
        /// <param name="callback">The callback.</param>
        /// <exception cref="ArgumentNullException">The <paramref name="callback"/> is <c>null</c>.</exception>
        public void Visit(OnAfterCallback callback)
        {
            Argument.IsNotNull("callback", callback);

            OnAfterCallbackCollection.Add(callback);
        }
        /// <summary>
        /// Visits the specified callback.
        /// </summary>
        /// <param name="callback">The callback.</param>
        /// <exception cref="ArgumentNullException">The <paramref name="callback"/> is <c>null</c>.</exception>
        public void Visit(OnAfterCallback callback)
        {
            Argument.IsNotNull("callback", callback);

            OnAfterCallbackCollection.Add(callback);
        }