/// <summary> /// Initializes a new <see cref="MudLog" /> based on a <see cref="Energistics.DataAccess.WITSML141.MudLog" />. /// </summary> /// <param name="mudLog">The WITSML 1.4.1.1 MudLog</param> public MudLog(Energistics.DataAccess.WITSML141.MudLog mudLog) { mudLog.NotNull(nameof(mudLog)); _mudLog141 = mudLog; DataSchemaVersion = OptionsIn.DataVersion.Version141.Value; InitializeGeologyIntervals(); }
/// <summary> /// Initializes a new <see cref="MudLog" /> based on either a <see cref="Energistics.DataAccess.WITSML131.MudLog" /> /// or a <see cref="Energistics.DataAccess.WITSML141.MudLog" />. /// </summary> /// <param name="mudLog">The WITSML 1.3.1.1 or 1.4.1.1 MudLog</param> public MudLog(object mudLog) { mudLog.NotNull(nameof(mudLog)); if (mudLog is Energistics.DataAccess.WITSML131.MudLog) { _mudLog131 = mudLog as Energistics.DataAccess.WITSML131.MudLog; } else if (mudLog is Energistics.DataAccess.WITSML141.MudLog) { _mudLog141 = mudLog as Energistics.DataAccess.WITSML141.MudLog; } else { throw new ArgumentException("Not a WITSML 1.3.1.1 or WITSML 1.4.1.1 MudLog", "mudLog"); } DataSchemaVersion = OptionsIn.DataVersion.Version141.Value; InitializeGeologyIntervals(); }