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

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

            status.FromNative(s);

            return(ret);
        }
Example #2
0
        private void OnOfferedIncompatibleQosHandler(IntPtr writer, ref OfferedIncompatibleQosStatusWrapper status)
        {
            Entity entity = EntityManager.Instance.Find(writer);

            DataWriter dataWriter = null;

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

            OfferedIncompatibleQosStatus ret = default;

            ret.FromNative(status);

            OnOfferedIncompatibleQos(dataWriter, ret);
        }
Example #3
0
 /// <summary>
 /// <para>Handles the <see cref="StatusKind.OfferedIncompatibleQosStatus" /> communication status.</para>
 /// <para>The <see cref="StatusKind.OfferedIncompatibleQosStatus" /> indicates that an offered QoS was incompatible with
 /// the requested QoS of a <see cref="DataReader" />.</para>
 /// </summary>
 /// <param name="writer">The <see cref="DataWriter" /> that triggered the event.</param>
 /// <param name="status">The current <see cref="OfferedIncompatibleQosStatus" />.</param>
 public abstract void OnOfferedIncompatibleQos(DataWriter writer, OfferedIncompatibleQosStatus status);