コード例 #1
0
        private static void SendBusinessMessage()
        {
            MonitoringProxy.MonitoringServiceClient msc = new MonitoringServiceClient();
            var raw = new RmsReportMonitoringRaw();

            raw.ClientCode       = "SKSSGWS01";
            raw.Message          = "BATCH_COMPLETE";
            raw.MessageGroupCode = "B011";
            raw.MessageRemark    = "Testing Business Message";
            msc.AddBusinessMessage(raw);
        }
コード例 #2
0
        private void btnCallAddBizMessage_Click(object sender, RoutedEventArgs e)
        {
            MonitoringServiceClient msc = new MonitoringServiceClient();

            var rawMessage = new RmsReportMonitoringRaw();

            rawMessage.ClientCode       = txtClientCode.Text;
            rawMessage.DeviceCode       = txtDeviceCode.Text;
            rawMessage.MessageGroupCode = txtMessageGroupCode.Text;
            rawMessage.Message          = txtMessage.Text;
            rawMessage.MessageDateTime  = DateTime.Now;

            if (!string.IsNullOrEmpty(txtMonitoringProfileDeviceID.Text.Trim()))
            {
                rawMessage.MonitoringProfileDeviceId = Convert.ToInt32(txtMonitoringProfileDeviceID.Text);
            }

            rawMessage.MessageRemark = string.IsNullOrEmpty(txtMessageRemark.Text) ? null : txtMessageRemark.Text;

            msc.AddBusinessMessage(rawMessage);
        }