/// <summary> /// Allows access to the <see cref="RequestedIncompatibleQosStatus" /> communication status. /// </summary> /// <param name="status">The <see cref="RequestedIncompatibleQosStatus" /> to be filled up.</param> /// <returns>The <see cref="ReturnCode" /> that indicates the operation result.</returns> public ReturnCode GetRequestedIncompatibleQosStatus(ref RequestedIncompatibleQosStatus status) { RequestedIncompatibleQosStatusWrapper s = default; ReturnCode ret = UnsafeNativeMethods.GetRequestedIncompatibleQosStatus(_native, ref s); status.FromNative(s); return(ret); }
internal void FromNative(RequestedIncompatibleQosStatusWrapper 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; }
private void OnRequestedIncompatibleQosHandler(IntPtr reader, ref RequestedIncompatibleQosStatusWrapper status) { Entity entity = EntityManager.Instance.Find(reader); DataReader dataReader = null; if (entity != null) { dataReader = entity as DataReader; } RequestedIncompatibleQosStatus ret = default; ret.FromNative(status); OnRequestedIncompatibleQos(dataReader, ret); }
public static extern ReturnCode GetRequestedIncompatibleQosStatus(IntPtr dr, [MarshalAs(UnmanagedType.Struct), In, Out] ref RequestedIncompatibleQosStatusWrapper status);