Пример #1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        public void EnumConnections(out IEnumConnections ppEnum)
        {
            //
            // Creates an enumerator object for iteration through the connections that exist to this connection point.
            //

            LoggingUtils.PrintFunction();

            try
            {
                List <System.Runtime.InteropServices.ComTypes.CONNECTDATA> connections = new List <System.Runtime.InteropServices.ComTypes.CONNECTDATA> ();

                foreach (KeyValuePair <int, IDebugPortEvents2> keyPair in m_eventConnectionPoints)
                {
                    connections.Add(new System.Runtime.InteropServices.ComTypes.CONNECTDATA()
                    {
                        dwCookie = keyPair.Key,
                        pUnk     = (object)keyPair.Value
                    });
                }

                ppEnum = new ConnectionEnumerator(connections);
            }
            catch (Exception e)
            {
                LoggingUtils.HandleException(e);

                ppEnum = null;
            }
        }
Пример #2
0
 public virtual void Clone(out IEnumConnections ppEnum)
 {
     ppEnum = new ConnectionEnumerator(_connections, _currentIndex);
 }
Пример #3
0
 public virtual void EnumConnections(out IEnumConnections ppEnum)
 {
     ppEnum = new ConnectionEnumerator(sinks);
 }
Пример #4
0
 internal NodeEnumeratorByPort(ConnectionEnumerator parent, TInputPort filter)
 {
     m_Walker = parent;
     m_Filter = filter;
 }