public static ComponentInfo GetComponentInfo(this IVertex v,bool load)
 {
     var model = (ComponentModel)v;
     var serviceName = GetServiceName(model);
     var x = new ComponentInfo()
     {
         FriendlyName = model.Implementation.GetFriendlyName(serviceName),
         Name = model.Implementation.FullName,
         Services = model.Services.Select(GetFriendlyName).ToList(),
         Dependents =!load? null:model.Dependents.Select(c => GetComponentInfo(c,false)).ToList()
     };
     return x;
 }
        public static ComponentInfo GetComponentInfo(this IVertex v, bool load)
        {
            var model       = (ComponentModel)v;
            var serviceName = GetServiceName(model);
            var x           = new ComponentInfo()
            {
                FriendlyName = model.Implementation.GetFriendlyName(serviceName),
                Name         = model.Implementation.FullName,
                Services     = model.Services.Select(GetFriendlyName).ToList(),
                Dependents   = !load? null:model.Dependents.Select(c => GetComponentInfo(c, false)).ToList()
            };

            return(x);
        }