I'm glad that worked out, TJ. Sorry that my original post was unclear. Thanks for tackling the issue!
On Mon, Jan 12, 2009 at 6:31 PM, TJ Kolev <tjko...@gmail.com> wrote: > I just finished trying HttpChannel(0) :) I initially misread Ben's > suggestion and he and you are correct: HttpChannel(0) does give you an > available port. The HttpChannel() I used is of not much use. > > Another improvement I found while testing. The port variable is not > needed (unless we decide to report on it). This works instead: > > private static Lucene.Net.Search.Searchable LookupRemote() > { > //return > (Lucene.Net.Search.Searchable)Activator.GetObject(typeof(Lucene.Net.Search.Searchable), > string.Format("http://localhost:{0}/RemoteSearchable", port)); > > return > (Lucene.Net.Search.Searchable)Activator.GetObject(typeof(Lucene.Net.Search.Searchable), > httpChannel.GetUrlsForUri("RemoteSearchable")[0]); > } > > > I will make a jira and attach a patch. > > tjk :) > > -- 13:37 - Someone stole the precinct toilet. The cops have nothing to go on. 14:37 - Officers dispatched to a daycare where a three-year-old was resisting a rest. 21:11 - Hole found in nudist camp wall. Officers are looking into it.