예제 #1
0
        /// <summary>
        /// Allows access to the <see cref="OfferedDeadlineMissedStatus" /> communication status.
        /// </summary>
        /// <param name="status">The <see cref="OfferedDeadlineMissedStatus" /> to be filled up.</param>
        /// <returns>The <see cref="ReturnCode" /> that indicates the operation result.</returns>
        public ReturnCode GetOfferedDeadlineMissedStatus(ref OfferedDeadlineMissedStatus status)
        {
            OfferedDeadlineMissedStatus s = default;

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

            status = s;

            return(ret);
        }
예제 #2
0
        private void OnOfferedDeadlineMissedHandler(IntPtr writer, ref OfferedDeadlineMissedStatus status)
        {
            Entity entity = EntityManager.Instance.Find(writer);

            DataWriter dataWriter = null;

            if (entity != null)
            {
                dataWriter = entity as DataWriter;
            }

            OnOfferedDeadlineMissed(dataWriter, status);
        }
예제 #3
0
 /// <summary>
 /// <para>Handles the <see cref="StatusKind.OfferedDeadlineMissedStatus" /> communication status.</para>
 /// <para>The <see cref="StatusKind.OfferedDeadlineMissedStatus" /> indicates that the deadline offered by the
 /// <see cref="DataWriter" /> has been missed for one or more instances.</para>
 /// </summary>
 /// <param name="writer">The <see cref="DataWriter" /> that triggered the event.</param>
 /// <param name="status">The current <see cref="OfferedDeadlineMissedStatus" />.</param>
 public abstract void OnOfferedDeadlineMissed(DataWriter writer, OfferedDeadlineMissedStatus status);
예제 #4
0
 public static extern ReturnCode GetOfferedDeadlineMissedStatus(IntPtr dw, [MarshalAs(UnmanagedType.Struct), In, Out] ref OfferedDeadlineMissedStatus status);