public ReferenceResult QueryReferences(QueryReferenceType queryReferenceType) { try { return(this.ExecuteQuery <ReferenceResult, ReferencesType, QueryResultCatalogRecordType>(this._client.VCloudApiURL + this.BuildQuery(queryReferenceType.Value()) + this.BuildQuery(FormatType.REFERENCE_VIEW))); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
/// <summary> /// Visits a <see cref="QueryReferenceType"/>. /// </summary> /// <param name="type">Query type being visited.</param> /// <returns>The result of visiting this query type.</returns> public ComparisonResult Visit(QueryReferenceType type) { throw new TaupoNotSupportedException("Comparison of query reference value is not supported."); }
/// <summary> /// Visits a <see cref="QueryReferenceType"/>. /// </summary> /// <param name="type">Query type being visited.</param> /// <returns>The result of visiting this query type.</returns> public ComparisonResult Visit(QueryReferenceType type) { return(this.parent.CompareReference((QueryReferenceValue)this.expectedValue, this.actualValue, this.path, this.shouldThrow)); }
/// <summary> /// Creates a QueryValue of a given type. /// </summary> /// <param name="type">Type of the QueryValue that will be generated.</param> /// <returns>QueryValue representing the provided object.</returns> public virtual QueryValue Visit(QueryReferenceType type) { throw new TaupoNotSupportedException("Not supported by generic converter. Use Entity Framework specific implementation."); }