/// <summary> /// Allows access to the <see cref="SampleLostStatus" /> communication status. /// </summary> /// <param name="status">The <see cref="SampleLostStatus" /> to be filled up.</param> /// <returns>The <see cref="ReturnCode" /> that indicates the operation result.</returns> public ReturnCode GetSampleLostStatus(ref SampleLostStatus status) { SampleLostStatus s = default; ReturnCode ret = UnsafeNativeMethods.GetSampleLostStatus(_native, ref s); status = s; return(ret); }
private void OnSampleLostHandler(IntPtr reader, ref SampleLostStatus status) { Entity entity = EntityManager.Instance.Find(reader); DataReader dataReader = null; if (entity != null) { dataReader = entity as DataReader; } OnSampleLost(dataReader, status); }
public static extern ReturnCode GetSampleLostStatus(IntPtr dr, [MarshalAs(UnmanagedType.Struct), In, Out] ref SampleLostStatus status);
/// <summary> /// <para>Handles the <see cref="StatusKind.SampleLostStatus" /> communication status.</para> /// <para>The <see cref="StatusKind.SampleLostStatus" /> indicates that a sample has been lost and /// never received by the <see cref="DataReader" />.</para> /// </summary> /// <param name="reader">The <see cref="DataReader" /> that triggered the event.</param> /// <param name="status">The current <see cref="SampleLostStatus" />.</param> public abstract void OnSampleLost(DataReader reader, SampleLostStatus status);