/// <summary>
 /// Creates an HttpHandler with an exisiting dispatcher
 /// </summary>
 /// <param name="dispatcher">Implementation of an IAjaxRequestDispatcher</param>
 public AjaxRequestHandler(IAjaxRequestDispatcher dispatcher)
 {
     this._dispatcher = dispatcher;
 }
        /// <summary>
        /// Creates an HttpHandler for AjaxRequests and resolves the dispatchter from the IoC container
        /// </summary>
        public AjaxRequestHandler()
        {
            PortalContainer container = ContainerAccessorUtil.GetContainer();

            this._dispatcher = container.Resolve <IAjaxRequestDispatcher>();
        }