private T locate(string name, T fromTemplate) { return(locateTemplates(name, fromTemplate, true) .Where(x => _templateSelector.IsAppropriate(x)) .FirstOrDefault()); }
public bool CanBind(IBindRequest <T> request) { var template = request.Target; return(!(template.Descriptor is ViewDescriptor <T>) && _templateSelector.IsAppropriate(template)); }