예제 #1
0
 public static IEnumerable <ComposableResourceSettings> Links(
     this ComposableResourceSettings resource,
     IEnumerable <ComposableResourceSettings> all)
 {
     foreach (ComposeResourceLink link in resource.Links)
     {
         ComposableResourceSettings linkRes = all.FirstOrDefault(x => x.Name == link.Name);
         yield return(linkRes);
     }
 }
예제 #2
0
        public ComposableResourceSettings Build()
        {
            var setting = new ComposableResourceSettings(
                _name,
                _resourceType,
                new List <ComposeResourceLink>(_links),
                new TResourceOptions(),
                _onStarted
                );

            return(setting);
        }
예제 #3
0
 public static bool HasLinks(this ComposableResourceSettings settings)
 {
     return(settings.Links.Any());
 }