Esempio n. 1
0
        public DispositionReport NotifyChangeRecordsAvailable(UDDI.Replication.NotifyChangeRecordsAvailable message)
        {
            //
            // Log more information than for a usual message to help diagnose possible replication errors.
            //
            StartOperatorMessageLog("NotifyChangeRecordsAvailable", message);

            //Debug.Enter();
            Debug.VerifySetting("OperatorKey");

            DispositionReport dr = new DispositionReport();

            //
            // Make sure the request is allowed by the communication graph.
            //
            ControlledMessage.Test(message.NotifyingNode,
                                   Config.GetString("OperatorKey"),
                                   MessageType.GetChangeRecords);

            try
            {
                message.Notify();

                EndOperatorMessageLog("NotifyChangeRecordsAvailable", null);
            }
            catch (Exception e)
            {
                DispositionReport.Throw(e);
                EndOperatorMessageLog("NotifyChangeRecordsAvailable", e);
            }

            //Debug.Leave();

            return(dr);
        }
Esempio n. 2
0
        public string DoPing(UDDI.Replication.DoPing message)
        {
            StartOperatorMessageLog("DoPing", message);

            //Debug.Enter();

            //
            // Retrieve the change records.
            //
            string detail = null;

            try
            {
                detail = message.Ping();

                EndOperatorMessageLog("DoPing", detail);
            }
            catch (Exception e)
            {
                DispositionReport.Throw(e);

                EndOperatorMessageLog("DoPing", e);
            }

            //Debug.Leave();

            return(detail);
        }
Esempio n. 3
0
        public HighWaterMarkDetail GetHighWaterMarks(UDDI.Replication.GetHighWaterMarks message)
        {
            //
            // Log more information than for a usual message to help diagnose possible replication errors.
            //
            StartOperatorMessageLog("GetHighWaterMarks", message);

            //Debug.Enter();

            //
            // Retrieve the change records.
            //
            HighWaterMarkDetail detail = null;

            try
            {
                detail = message.Get();

                EndOperatorMessageLog("GetHighWaterMarks", detail);
            }
            catch (Exception e)
            {
                DispositionReport.Throw(e);

                EndOperatorMessageLog("GetHighWaterMarks", e);
            }

            //Debug.Leave();

            return(detail);
        }
Esempio n. 4
0
        public CategoryList GetRelatedCategories(GetRelatedCategories message)
        {
            Debug.Enter();
            CategoryList list = null;

            try
            {
                list = message.Get();
            }
            catch (Exception e)
            {
                DispositionReport.Throw(e);
            }

            Debug.Leave();

            return(list);
        }
Esempio n. 5
0
        public ChangeRecordDetail GetChangeRecords(UDDI.Replication.GetChangeRecords message)
        {
            //
            // Log more information than for a usual message to help diagnose possible replication errors.
            //
            StartOperatorMessageLog("GetChangeRecords", message);

            //Debug.Enter();
            Debug.VerifySetting("OperatorKey");

            //
            // Make sure the request is allowed by the communication graph.
            //
            ControlledMessage.Test(message.RequestingNode,
                                   Config.GetString("OperatorKey"),
                                   MessageType.GetChangeRecords);

            //
            // Retrieve the change records.
            //
            ChangeRecordDetail detail = new ChangeRecordDetail();

            try
            {
                detail = message.Get();

                EndOperatorMessageLog("GetChangeRecords", detail);
            }
            catch (Exception e)
            {
                DispositionReport.Throw(e);

                EndOperatorMessageLog("GetChangeRecords", e);
            }

            //Debug.Leave();

            return(detail);
        }