Exemplo n.º 1
0
        /// <summary>
        /// Allows access to the <see cref="SampleRejectedStatus" /> communication status.
        /// </summary>
        /// <param name="status">The <see cref="SampleRejectedStatus" /> to be filled up.</param>
        /// <returns>The <see cref="ReturnCode" /> that indicates the operation result.</returns>
        public ReturnCode GetSampleRejectedStatus(ref SampleRejectedStatus status)
        {
            SampleRejectedStatus s = default;

            ReturnCode ret = UnsafeNativeMethods.GetSampleRejectedStatus(_native, ref s);

            status = s;

            return(ret);
        }
Exemplo n.º 2
0
        private void OnSampleRejectedHandler(IntPtr reader, ref SampleRejectedStatus status)
        {
            Entity entity = EntityManager.Instance.Find(reader);

            DataReader dataReader = null;

            if (entity != null)
            {
                dataReader = entity as DataReader;
            }

            OnSampleRejected(dataReader, status);
        }
Exemplo n.º 3
0
 public static extern ReturnCode GetSampleRejectedStatus(IntPtr dr, [MarshalAs(UnmanagedType.Struct), In, Out] ref SampleRejectedStatus status);
Exemplo n.º 4
0
 /// <summary>
 /// <para>Handles the <see cref="StatusKind.SampleRejectedStatus" /> communication status.</para>
 /// <para>The <see cref="StatusKind.SampleRejectedStatus" /> indicates that a sample received by the
 /// <see cref="DataReader" /> has been rejected.</para>
 /// </summary>
 /// <param name="reader">The <see cref="DataReader" /> that triggered the event.</param>
 /// <param name="status">The current <see cref="SampleRejectedStatus" />.</param>
 public abstract void OnSampleRejected(DataReader reader, SampleRejectedStatus status);