Ejemplo n.º 1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
        {
            //
            // Creates an enumerator of all the connection points supported in the connectable object, one connection point per IID.
            //

            LoggingUtils.PrintFunction();

            ppEnum = null;

            try
            {
                List <IConnectionPoint> connectionPoints = new List <IConnectionPoint> ();

                connectionPoints.Add(this); // one connection point per IID.

                ppEnum = new ConnectionPointEnumerator(connectionPoints);
            }
            catch (Exception e)
            {
                LoggingUtils.HandleException(e);

                ppEnum = null;
            }
        }
Ejemplo n.º 2
0
 public void Clone(out IEnumConnectionPoints ppenum)
 {
     ppenum = new ConnectionPointList()
     {
         connectionPoints = this.connectionPoints,
         currentEnumIndex = this.currentEnumIndex
     };
 }
Ejemplo n.º 3
0
 // Token: 0x0600018C RID: 396 RVA: 0x00013168 File Offset: 0x00012168
 public void Clone(out IEnumConnectionPoints ppenum)
 {
     lock (this)
     {
         try
         {
             ppenum = new EnumConnectionPoints(this.m_connectionPoints);
         }
         catch (Exception e)
         {
             throw Server.CreateException(e);
         }
     }
 }
Ejemplo n.º 4
0
        /// <summary>
        /// try to find connection point by EnumConnectionPoints
        /// </summary>
        private static string EnumConnectionPoint(ICOMObject comInstance, IConnectionPointContainer connectionPointContainer, ref IConnectionPoint point, params string[] sinkIds)
        {
            IConnectionPoint[]    points     = new IConnectionPoint[1];
            IEnumConnectionPoints enumPoints = null;

            try
            {
                connectionPointContainer.EnumConnectionPoints(out enumPoints);
                while (enumPoints.Next(1, points, IntPtr.Zero) == 0) // S_OK = 0 , S_FALSE = 1
                {
                    if (null == points[0])
                    {
                        break;
                    }

                    Guid interfaceGuid;
                    points[0].GetConnectionInterface(out interfaceGuid);

                    for (int i = sinkIds.Length; i > 0; i--)
                    {
                        string id = interfaceGuid.ToString().Replace("{", "").Replace("}", "");
                        if (true == sinkIds[i - 1].Equals(id, StringComparison.InvariantCultureIgnoreCase))
                        {
                            Marshal.ReleaseComObject(enumPoints);
                            enumPoints = null;
                            point      = points[0];
                            return(id);
                        }
                    }
                }
                return(null);
            }
            catch (Exception throwedException)
            {
                comInstance.Console.WriteException(throwedException);
                return(null);
            }
            finally
            {
                if (null != enumPoints)
                {
                    Marshal.ReleaseComObject(enumPoints);
                }
            }
        }
Ejemplo n.º 5
0
        public void Clone(out IEnumConnectionPoints ppenum)
        {
            EnumConnectionPoints points;

            Monitor.Enter(points = this);
            try
            {
                ppenum = new EnumConnectionPoints(this.m_connectionPoints);
            }
            catch (Exception exception)
            {
                throw Server.CreateException(exception);
            }
            finally
            {
                Monitor.Exit(points);
            }
        }
Ejemplo n.º 6
0
        public void EnumConnectionPoints(out IEnumConnectionPoints ppenum)
        {
            ConnectionPointContainer container;

            Monitor.Enter(container = this);
            try
            {
                ppenum = new OpcCom.Da.Wrapper.EnumConnectionPoints(this.m_connectionPoints.Values);
            }
            catch (Exception exception)
            {
                throw Server.CreateException(exception);
            }
            finally
            {
                Monitor.Exit(container);
            }
        }
 public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 8
0
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum) => ((IConnectionPointContainer)_editorWindow).EnumConnectionPoints(out ppEnum);
Ejemplo n.º 9
0
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     ppEnum = null;
 }
Ejemplo n.º 10
0
 public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     ppEnum = this.connectionPoints;
 }
Ejemplo n.º 11
0
 public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     ppEnum = null;
 }
Ejemplo n.º 12
0
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     ((IConnectionPointContainer)featureLayer).EnumConnectionPoints(out ppEnum);
 }
Ejemplo n.º 13
0
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     // This doesn't need to be implemented; all we care about
     // is FindConnectionPoint().
     throw new NotImplementedException();
 }
Ejemplo n.º 14
0
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Ejemplo n.º 15
0
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     ppEnum = new EnumConnectionPoints(connectionPoints.Values);
 }
 public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     var codeWindow = (IConnectionPointContainer) _vsCodeWindow;
     codeWindow.EnumConnectionPoints(out ppEnum);
 }
Ejemplo n.º 17
0
 /// <summary>
 /// Creates an enumerator object to iterate through all the connection points supported in the connectable object, one 
 /// connection point per outgoing IID. Not implemented. (http://msdn.microsoft.com/en-CA/library/ms682460.aspx)
 /// </summary>
 /// <param name="ppEnum"> An IEnumConnectionPoints object that receives the newly created enumerator. </param>
 public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     // We only need FindConnectionPoint().
     throw new NotImplementedException();
 }
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 19
0
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     // This doesn't need to be implemented; all we care about
     // is FindConnectionPoint().
     throw new NotImplementedException();
 }
        public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
        {
            var codeWindow = (IConnectionPointContainer)_vsCodeWindow;

            codeWindow.EnumConnectionPoints(out ppEnum);
        }
Ejemplo n.º 21
0
 /// <summary>
 /// Creates an enumerator object to iterate through all the connection points supported in the connectable object, one
 /// connection point per outgoing IID. Not implemented. (http://msdn.microsoft.com/en-CA/library/ms682460.aspx)
 /// </summary>
 /// <param name="ppEnum"> An IEnumConnectionPoints object that receives the newly created enumerator. </param>
 public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     // We only need FindConnectionPoint().
     throw new NotImplementedException();
 }
Ejemplo n.º 22
0
 void Microsoft.VisualStudio.OLE.Interop.IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 23
0
 public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     ppEnum = null;
 }
Ejemplo n.º 24
0
 public void EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     this._eventContainer.EnumConnectionPoints(out ppEnum);
 }
Ejemplo n.º 25
0
 void Microsoft.VisualStudio.OLE.Interop.IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     throw new NotImplementedException();
 }
 public extern virtual void EnumConnectionPoints(out IEnumConnectionPoints ppEnum);
Ejemplo n.º 27
0
 void IConnectionPointContainer.EnumConnectionPoints(out IEnumConnectionPoints ppEnum)
 {
     throw new NotImplementedException();
 }
 public virtual extern void EnumConnectionPoints(out IEnumConnectionPoints ppEnum);