WMS via Brutile

Editor
Feb 7, 2014 at 3:08 PM
Does any know how I can add a WMS layer via Brutile?

I'm trying something like this
        var Ts = BruTile.Web.WmscTileSource.CreateFromWmscCapabilties(new Uri("http://localhost:9006/api/wms/20?Request=GetCapabilities&Service=WMS"));


        var Tl = new SharpMap.Layers.TileLayer(Ts.First(), "HybridMapLayer");
but I'm getting an object collection empty error. I know the wms is running and working.

Any Ideas?

Will this be easier in newer verisons of brutile?

Thanks