Esempio n. 1
0
            /// <summary>
            /// Installs the report handler.
            /// </summary>
            /// <description>
            /// This will install a callback handler (delegate) that is invoked whenever a report
            /// related this RCB is received. Any call of this method will replace an previously registered
            /// handler!
            /// </description>
            /// <param name='reportHandler'>
            /// report handler
            /// </param>
            /// <param name='parameter'>
            /// parameter is passed to the handler when the handler is invoked.
            /// </param>
            public void InstallReportHandler(ReportHandler reportHandler, object parameter)
            {
                this.reportHandler = new ReportHandler(reportHandler);

                this.reportHandlerParameter = parameter;

                if (reportHandlerInstalled == false)
                {
                    string reportId = this.GetRptId();

                    if (internalHandler == null)
                    {
                        internalHandler = new InternalReportHandler(internalReportHandler);
                    }

                    IedConnection_installReportHandler(this.connection, objectReference, reportId, internalHandler, IntPtr.Zero);
                    reportHandlerInstalled = true;
                }
            }
Esempio n. 2
0
 static extern void IedConnection_installReportHandler(IntPtr connection, string rcbReference, string rptId, InternalReportHandler handler,
                                                       IntPtr handlerParameter);
Esempio n. 3
0
     static extern void IedConnection_installReportHandler(IntPtr connection, string rcbReference, string rptId, InternalReportHandler handler,
 		IntPtr handlerParameter);