This repository has been archived by the owner on Jan 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b5cf60
commit a062780
Showing
15 changed files
with
62 additions
and
66 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
sample/Glimpse.AgentServer.Dnx.Mvc.Sample/Framework/ConnectionTab.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using Microsoft.AspNet.Http; | ||
using Glimpse.Agent; | ||
|
||
namespace Glimpse.AgentServer.Dnx.Mvc.Sample.Framework | ||
{ | ||
public class ConnectionTab : Tab | ||
{ | ||
public override string Name => "Connection"; | ||
|
||
public override object GetData(HttpContext context) | ||
{ | ||
var connection = context.Connection; | ||
return new | ||
{ | ||
ClientCertificate = connection.ClientCertificate?.ToString(), | ||
connection.IsLocal, | ||
LocalIpAddress = connection.LocalIpAddress.ToString(), | ||
connection.LocalPort, | ||
RemoteIpAddress = connection.RemoteIpAddress.ToString(), | ||
connection.RemotePort | ||
}; | ||
} | ||
|
||
public override TabExecute TabExecuteWhen => TabExecute.BeforeResponse; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
sample/Glimpse.AgentServer.Dnx.Mvc.Sample/Framework/HeadersTab.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Glimpse.Agent; | ||
using Microsoft.AspNet.Http; | ||
|
||
namespace Glimpse.AgentServer.Dnx.Mvc.Sample.Framework | ||
{ | ||
// TODO: Delete me. This tab isn't intended to stick around, it's just a sample of a Tab. | ||
public class HeadersTab : Tab | ||
{ | ||
public override string Name => "Headers"; | ||
|
||
public override object GetData(HttpContext context) | ||
{ | ||
return new | ||
{ | ||
Request = context.Request.Headers, | ||
Response = context.Response.Headers | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
using Glimpse.Agent.Internal.Messaging; | ||
using Glimpse.Internal; | ||
|
||
namespace Glimpse.Agent.Messages | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...rnal/Messaging/DefaultMessageConverter.cs → ...Core/Messaging/DefaultMessageConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e/Internal/Messaging/IMessageConverter.cs → ...Agent.Core/Messaging/IMessageConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ernal/Messaging/IMessageIndexProcessor.cs → ....Core/Messaging/IMessageIndexProcessor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nal/Messaging/IMessagePayloadFormatter.cs → ...ore/Messaging/IMessagePayloadFormatter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ternal/Messaging/IMessageTypeProcessor.cs → ...t.Core/Messaging/IMessageTypeProcessor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters