Beispiel #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);
        }
Beispiel #2
0
        internal void FromNative(OfferedIncompatibleQosStatusWrapper wrapper)
        {
            IList <QosPolicyCount> list = new List <QosPolicyCount>();

            if (wrapper.Policies != IntPtr.Zero)
            {
                wrapper.Policies.PtrToSequence(ref list);
            }

            TotalCount       = wrapper.TotalCount;
            TotalCountChange = wrapper.TotalCountChange;
            LastPolicyId     = wrapper.LastPolicyId;
            Policies         = list;
        }
Beispiel #3
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);
        }
Beispiel #4
0
 public static extern ReturnCode GetOfferedIncompatibleQosStatus(IntPtr dw, [MarshalAs(UnmanagedType.Struct), In, Out] ref OfferedIncompatibleQosStatusWrapper status);