Esempio n. 1
0
        public void AddPostInvokeHook( PostInvokeHook hook )
        {
            if( hook == null )
            {
                throw new ArgumentNullException( "hook" );
            }
            if( _postInvokeHooks == null )
            {
                _postInvokeHooks = new List<PostInvokeHook>();
            }

            _postInvokeHooks.Add( hook );
        }
        public void AddPostInvokeHook(PostInvokeHook hook)
        {
            if (hook == null)
            {
                throw new ArgumentNullException("hook");
            }
            if (_postInvokeHooks == null)
            {
                _postInvokeHooks = new List <PostInvokeHook>();
            }

            _postInvokeHooks.Add(hook);
        }