/// <summary> /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed. /// <example> /// headerhandler.BeginInvoke(headers, callback); /// </example> /// </summary> public static IAsyncResult BeginInvoke(this HeaderHandler headerhandler, Header[] headers, AsyncCallback callback) { if (headerhandler == null) { throw new ArgumentNullException("headerhandler"); } return(headerhandler.BeginInvoke(headers, callback, null)); }