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

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

            status = s;

            return(ret);
        }
示例#2
0
        private void OnSubscriptionMatchedHandler(IntPtr reader, ref SubscriptionMatchedStatus status)
        {
            Entity entity = EntityManager.Instance.Find(reader);

            DataReader dataReader = null;

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

            OnSubscriptionMatched(dataReader, status);
        }
示例#3
0
 public static extern ReturnCode GetSubscriptionMatchedStatus(IntPtr dr, [MarshalAs(UnmanagedType.Struct), In, Out] ref SubscriptionMatchedStatus status);
示例#4
0
 /// <summary>
 /// <para>Handles the <see cref="StatusKind.SubscriptionMatchedStatus" /> communication status.</para>
 /// <para>The <see cref="StatusKind.SubscriptionMatchedStatus" /> indicates that either a compatible <see cref="DataWriter" /> has been
 /// matched or a previously matched <see cref="DataWriter" /> has ceased to be matched.</para>
 /// </summary>
 /// <param name="reader">The <see cref="DataReader" /> that triggered the event.</param>
 /// <param name="status">The current <see cref="SubscriptionMatchedStatus" />.</param>
 public abstract void OnSubscriptionMatched(DataReader reader, SubscriptionMatchedStatus status);