Skip to content

Commit

Permalink
added a type property to ChainExecutionLog to more easily tell servic…
Browse files Browse the repository at this point in the history
…e bus requests from http requests
  • Loading branch information
jeremydmiller committed Aug 31, 2015
1 parent d993a57 commit 170f761
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/FubuMVC.Core/Diagnostics/HttpRequestSummary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ public class HttpRequestSummary
// For serialization
public HttpRequestSummary()
{
type = "http";
}

public HttpRequestSummary(ChainExecutionLog log)
public HttpRequestSummary(ChainExecutionLog log) : this()
{
var request = new OwinHttpRequest(log.Request);
var response = new OwinHttpResponse(log.Request);
Expand All @@ -33,6 +34,8 @@ public HttpRequestSummary(ChainExecutionLog log)
duration = log.ExecutionTime;
}

public string type { get; set; }

public string id { get; set; }
public string time { get; set; }
public string url { get; set; }
Expand Down
3 changes: 0 additions & 3 deletions src/FubuMVC.Core/ServiceBus/Runtime/Envelope.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization.Formatters.Binary;
using FubuCore;
using FubuMVC.Core.Http;
using FubuMVC.Core.ServiceBus.Runtime.Headers;
Expand All @@ -11,8 +10,6 @@ namespace FubuMVC.Core.ServiceBus.Runtime
{
public class Envelope : HeaderWrapper
{
private static readonly BinaryFormatter formatter = new BinaryFormatter();

public static readonly string OriginalIdKey = "original-id";
public static readonly string IdKey = "id";
public static readonly string ParentIdKey = "parent-id";
Expand Down

0 comments on commit 170f761

Please sign in to comment.