Exemplo n.º 1
0
 /// <summary>
 /// Adds the channel to a <see cref="ChannelDataBlock"/> instance from a <see cref="Witsml200.ChannelSet"/>.
 /// </summary>
 /// <param name="dataBlock">The channel data block.</param>
 /// <param name="channelId">Then channel Id.</param>
 /// <param name="channel">The channel.</param>
 public static void AddChannel(this ChannelDataBlock dataBlock, int channelId, Witsml200.Channel channel)
 {
     dataBlock.AddChannel(
         channelId,
         channel.Mnemonic,
         channel.Uom.ToString(),
         channel.DataType?.ToString());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds the index to a <see cref="ChannelDataBlock"/> instance from a <see cref="Witsml200.ComponentSchemas.ChannelIndex"/>.
 /// </summary>
 /// <param name="dataBlock">The channel data block.</param>
 /// <param name="channelIndex">Index of the channel.</param>
 public static void AddIndex(this ChannelDataBlock dataBlock, Witsml200.ComponentSchemas.ChannelIndex channelIndex)
 {
     dataBlock.AddIndex(
         channelIndex.Mnemonic,
         channelIndex.Uom.ToString(),
         [email protected](),
         channelIndex.IsIncreasing(),
         channelIndex.IsTimeIndex());
 }