I'm trying to connect to a WMS service in order to get all layer names. It's all successful when I don't have a protected WMS service (username and password). I don't know how to connect to a WMS service when I need to provide username and password. Please can You provide me with a sollution to my problem.
I'm using this code:
var wmsSource = new WmsRasterSource(new Uri(uri));
wmsSource.Open();
return wmsSource.GetServerLayerNames().ToList();
Thank You.
Bojan