Example #1
0
 /// <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));
 }
Example #2
0
 /// <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()));
 }
Example #3
0
 /// <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()));
 }