/// <summary> /// Gets the <see cref="EtpUri"/> for a given <see cref="Energistics.DataAccess.RESQML210.AbstractObject"/>. /// </summary> /// <param name="entity">The <see cref="Energistics.DataAccess.RESQML210.AbstractObject"/> entity.</param> /// <returns>An <see cref="EtpUri"/> instance.</returns> public static EtpUri GetUri(this Resqml210.AbstractObject entity) { return(entity.GetUriFamily() .Append(ObjectTypes.GetObjectType(entity), entity.Uuid)); }
/// <summary> /// Gets the type of the object. /// </summary> /// <param name="dataObject">The data object.</param> /// <returns>The WITSML data object type, as a string.</returns> public static string GetObjectType(Resqml210.AbstractObject dataObject) { return(GetObjectType(dataObject.GetType())); }
/// <summary> /// Gets the <see cref="EtpUri"/> for a given <see cref="Energistics.DataAccess.RESQML210.AbstractObject"/> entity. /// </summary> /// <param name="entity">The <see cref="Energistics.DataAccess.RESQML210.AbstractObject"/> entity.</param> /// <returns>An <see cref="EtpUri"/> instance.</returns> public static EtpUri GetUriFamily(this Resqml210.AbstractObject entity) { return(GetUriFamily(entity?.GetType())); }