Example #1
0
        public string GetProfileCatalog(string[] roles)
        {
            if (_url == "http://localhost/unexisting/no.asmx")
            {
                throw new UnexistingUrlException();
            }
            string baseDir = new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath;
            int    iFolder = baseDir.LastIndexOf('\\');

            baseDir = baseDir.Substring(0, iFolder);
            ProfileCatalog catalog = new ProfileCatalog(baseDir);

            return(catalog.GetProfileCatalog(roles));

            ;
        }
 public ProfileCatalogService()
 {
     _proxy     = new ProfileCatalog();
     _proxy.Url = Settings.Default.ProfileCatalogWebServiceUrl;
 }