Beispiel #1
0
        void IOPCDataCallback.OnCancelComplete(int dwTransid, int hGroup)
        {
            Trace.WriteLine($"{nameof(OpcGroup)}.{nameof(IOPCDataCallback.OnCancelComplete)}, transID:{dwTransid}, thread ID:{System.Threading.Thread.CurrentThread.ManagedThreadId}");

            if (hGroup != stateHandleClient)
            {
                return;
            }

            CancelCompleteEventArgs eventArgs = new CancelCompleteEventArgs(dwTransid, hGroup);

            cancelCompleted?.Invoke(this, eventArgs);
        }
Beispiel #2
0
        void IOPCDataCallback.OnCancelComplete(int dwTransid, int hGroup)
        {
            Trace.WriteLine("OpcGroup.OnCancelComplete");
            if (hGroup != state.HandleClient)
            {
                return;
            }

            CancelCompleteEventArgs e = new CancelCompleteEventArgs(dwTransid, hGroup);

            if (CancelCompleted != null)
            {
                CancelCompleted(this, e);
            }
        }
        void IOPCDataCallback.OnCancelComplete( int dwTransid, int hGroup )
        {
            Trace.WriteLine( "OpcGroup.OnCancelComplete" );
            if( hGroup != state.HandleClient )
            return;

            CancelCompleteEventArgs	e = new CancelCompleteEventArgs( dwTransid, hGroup );
            if( CancelCompleted != null )
            CancelCompleted( this, e );
        }