private static bool TryGetRemoteSchema(string remoteLocation, RemoteSchemaFetcher remoteSchemaFetcher, out Introspection.Schema schema) { schema = null; try { schema = remoteSchemaFetcher(remoteLocation); } catch (Exception) { // TODO: log stuff } return(schema != null); }
private bool TryGetFieldTypeFromRemoteSchema(Introspection.Schema schema, string name, out Introspection.TypeElement field) { field = schema.Types.FirstOrDefault(t => t.Name == name); return(field != null); }