예제 #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);
        }
예제 #2
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);
        }