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); } }
public ComposableResourceSettings Build() { var setting = new ComposableResourceSettings( _name, _resourceType, new List <ComposeResourceLink>(_links), new TResourceOptions(), _onStarted ); return(setting); }
public static bool HasLinks(this ComposableResourceSettings settings) { return(settings.Links.Any()); }