Exemplo n.º 1
0
        public static Location ToLocation(this SPWebService farm)
        {
            var id = farm.Id;

            var webAppsCount = SpLocationHelper.GetAllWebApplications().Count();

            var location = LocationFactory.GetFarm(id, webAppsCount);

            return(location);
        }
Exemplo n.º 2
0
        public static Location ToLocation(this SPWebService farm)
        {
            var id = farm.Id;
            var activatedFeatures = farm.Features.ToActivatedFeatures(id, Scope.Farm, "Farm");

            var webAppsCount = Services.SpDataService.GetAllWebApplications().Count();

            var location = LocationFactory.GetFarm(id, activatedFeatures, webAppsCount);

            return(location);
        }