Beispiel #1
0
 public void PopulateDetails(CCustMessage Msg)
 {
     this.BeginInvoke((MethodInvoker) delegate()
     {
         LabelDirectionData.Text = Msg.ApiDirection;
         URIData.Text            = Msg.URI;
         ContentData.Text        = Msg.ContentType;
         LabelVerbData.Text      = Msg.Verb;
         LabelResourceData.Text  = Msg.Resource;
         RtbParams.Text          = Msg.QueryString;
         RtbPayload.Text         = Msg.Payload;
         if (PanelDetails.Visible == false)
         {
             PanelDetails.Visible = true;
         }
     });
 }
Beispiel #2
0
 private void ProcessEvent(
     string ADirection,
     ref int AStatusCode,
     string AHTTPVerb,
     string AResourceName,
     string AURL,
     ref string AHeaders,
     ref string AParams,
     ref string APayload,
     string AContentType,
     ref bool ACanContinue
     )
 {
     if (Logging)
     {
         CCustMessage NewMessage = new CCustMessage(ADirection, AURL, AContentType, AHTTPVerb, AResourceName, AParams, APayload);
         this.BeginInvoke((MethodInvoker) delegate()
         {
             Messages.Add(NewMessage);
             eventViewerGrid.Rows.Add(ADirection, AHTTPVerb, AResourceName);
         });
         PopulateDetails(NewMessage);
     }
 }