summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OAuth/OAuthReporting.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.OAuth/OAuthReporting.cs')
-rw-r--r--src/DotNetOpenAuth.OAuth/OAuthReporting.cs19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/DotNetOpenAuth.OAuth/OAuthReporting.cs b/src/DotNetOpenAuth.OAuth/OAuthReporting.cs
index ba4e9a1..062f9dc 100644
--- a/src/DotNetOpenAuth.OAuth/OAuthReporting.cs
+++ b/src/DotNetOpenAuth.OAuth/OAuthReporting.cs
@@ -1,13 +1,20 @@
-namespace DotNetOpenAuth {
+//-----------------------------------------------------------------------
+// <copyright file="OAuthReporting.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace DotNetOpenAuth {
using System;
using System.Collections.Generic;
+ using System.Diagnostics.Contracts;
using System.Linq;
using System.Text;
- using System.Diagnostics.Contracts;
+ using DotNetOpenAuth.Messaging.Bindings;
using DotNetOpenAuth.OAuth;
using DotNetOpenAuth.OAuth.ChannelElements;
- internal static class OAuthReporting {
+ internal class OAuthReporting : Reporting {
/// <summary>
/// Records the feature and dependency use.
/// </summary>
@@ -25,7 +32,7 @@
return;
}
- if (Enabled && Configuration.IncludeFeatureUsage) {
+ if (Reporting.Enabled && Reporting.Configuration.IncludeFeatureUsage) {
StringBuilder builder = new StringBuilder();
builder.Append(value.GetType().Name);
builder.Append(" ");
@@ -38,8 +45,8 @@
builder.Append(service.Version);
builder.Append(" ");
builder.Append(service.UserAuthorizationEndpoint);
- observedFeatures.Add(builder.ToString());
- Touch();
+ Reporting.ObservedFeatures.Add(builder.ToString());
+ Reporting.Touch();
}
}
}