Пример #1
0
        GetTopicQos(
            ref TopicQos topicQos,
            string id)
        {
            NamedTopicQos tQos      = new NamedTopicQos();
            GCHandle      qosHandle = GCHandle.Alloc(tQos, GCHandleType.Normal);
            ReturnCode    result    = OpenSplice.Common.QosProvider.GetTopicQos(GapiPeer, id, GCHandle.ToIntPtr(qosHandle));

            topicQos = tQos.TopicQos;
            qosHandle.Free();
            return(result);
        }
Пример #2
0
        GetTopicQos(
            ref TopicQos topicQos,
            string id)
        {
            ReportStack.Start();
            NamedTopicQos tQos      = new NamedTopicQos();
            GCHandle      qosHandle = GCHandle.Alloc(tQos, GCHandleType.Normal);
            ReturnCode    result    = qpResultToReturnCode(
                OpenSplice.Common.QosProvider.GetTopicQos(cmnQpPtr, id, GCHandle.ToIntPtr(qosHandle)));

            if (result == ReturnCode.Ok)
            {
                topicQos = tQos.TopicQos;
            }
            else
            {
                ReportStack.Report(result, "Could not copy TopicQos.");
            }
            qosHandle.Free();
            ReportStack.Flush(null, result != ReturnCode.Ok);
            return(result);
        }
Пример #3
0
 GetTopicQos (
     ref TopicQos topicQos,
     string id)
 {
     NamedTopicQos tQos = new NamedTopicQos();
     GCHandle qosHandle = GCHandle.Alloc(tQos, GCHandleType.Normal);
     ReturnCode result = OpenSplice.Common.QosProvider.GetTopicQos(GapiPeer, id, GCHandle.ToIntPtr(qosHandle));
     topicQos = tQos.TopicQos;
     qosHandle.Free();
     return result;
 }