Skip to content

Commit 889030e

Browse files
committed
Renamed Data to ContextData
1 parent c6821ae commit 889030e

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

Source/Extras/Plugins/ErrorPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public ErrorPlugin(IExceptionlessLog log) {
1313
}
1414

1515
public void Run(EventPluginContext context) {
16-
var exception = context.Data.GetException();
16+
var exception = context.ContextData.GetException();
1717
if (exception == null)
1818
return;
1919

Source/Platforms/Nancy/ExceptionlessNancyPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ internal class ExceptionlessNancyPlugin : IEventPlugin {
1010
public void Run(EventPluginContext context) {
1111
//error.ExceptionlessClientInfo.Platform = "Nancy";
1212

13-
var nancyContext = context.Data.GetNancyContext();
13+
var nancyContext = context.ContextData.GetNancyContext();
1414
if (nancyContext == null)
1515
return;
1616

Source/Platforms/Web/ExceptionlessWebPlugin.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal class ExceptionlessWebPlugin : IEventPlugin {
1111
private const string TAGS_HTTP_CONTEXT_NAME = "Exceptionless.Tags";
1212

1313
public void Run(EventPluginContext context) {
14-
HttpContextBase httpContext = context.Data.GetHttpContext();
14+
HttpContextBase httpContext = context.ContextData.GetHttpContext();
1515

1616
// if the context is not passed in, try and grab it
1717
if (httpContext == null && HttpContext.Current != null)
@@ -40,7 +40,7 @@ public void Run(EventPluginContext context) {
4040
if (requestInfo == null)
4141
return;
4242

43-
var httpException = context.Data.GetException() as HttpException;
43+
var httpException = context.ContextData.GetException() as HttpException;
4444
if (httpException != null) {
4545
int httpCode = httpException.GetHttpCode();
4646
if (httpCode == 404) {

Source/Platforms/WebApi/ExceptionlessWebApiPlugin.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
namespace Exceptionless.WebApi {
1616
internal class ExceptionlessWebApiPlugin : IEventPlugin {
1717
public void Run(EventPluginContext context) {
18-
if (!context.Data.ContainsKey("HttpActionContext"))
18+
if (!context.ContextData.ContainsKey("HttpActionContext"))
1919
return;
2020

21-
HttpActionContext actionContext = context.Data.GetHttpActionContext();
21+
HttpActionContext actionContext = context.ContextData.GetHttpActionContext();
2222
if (actionContext == null)
2323
return;
2424

Source/Shared/Plugins/Default/SimpleErrorPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Exceptionless.Plugins.Default {
66
[Priority(40)]
77
public class SimpleErrorPlugin : IEventPlugin {
88
public void Run(EventPluginContext context) {
9-
var exception = context.Data.GetException();
9+
var exception = context.ContextData.GetException();
1010
if (exception == null)
1111
return;
1212

Source/Shared/Plugins/Default/SubmissionMethodPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Exceptionless.Plugins.Default {
55
[Priority(30)]
66
public class SubmissionMethodPlugin : IEventPlugin {
77
public void Run(EventPluginContext context) {
8-
string submissionMethod = context.Data.GetSubmissionMethod();
8+
string submissionMethod = context.ContextData.GetSubmissionMethod();
99
if (!String.IsNullOrEmpty(submissionMethod))
1010
context.Event.AddObject(submissionMethod, Event.KnownDataKeys.SubmissionMethod);
1111
}

Source/Shared/Plugins/EventPluginContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ public class EventPluginContext {
88
public EventPluginContext(ExceptionlessClient client, Event ev, ContextData contextData = null) {
99
Client = client;
1010
Event = ev;
11-
Data = contextData ?? new ContextData();
11+
ContextData = contextData ?? new ContextData();
1212
}
1313

1414
public ExceptionlessClient Client { get; private set; }
1515
public Event Event { get; private set; }
1616
public IDependencyResolver Resolver { get { return Client.Configuration.Resolver; }}
17-
public ContextData Data { get; private set; }
17+
public ContextData ContextData { get; private set; }
1818

1919
public IExceptionlessLog Log {
2020
get { return Resolver.GetLog(); }

0 commit comments

Comments
 (0)