コード例 #1
0
        internal List <string> GetSubscription()
        {
            IntPtr    listPtr = IntPtr.Zero;
            ErrorCode err     = LibRdKafka.subscription(handle, out listPtr);

            if (err != ErrorCode.NO_ERROR)
            {
                throw RdKafkaException.FromErr(err, "Failed to get subscription");
            }
            // TODO: need to free anything here?
            return(GetTopicList(listPtr));
        }