summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Messaging/Reporting.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.Messaging/Reporting.cs')
-rw-r--r--src/DotNetOpenAuth.Messaging/Reporting.cs31
1 files changed, 17 insertions, 14 deletions
diff --git a/src/DotNetOpenAuth.Messaging/Reporting.cs b/src/DotNetOpenAuth.Messaging/Reporting.cs
index c528972..f197e81 100644
--- a/src/DotNetOpenAuth.Messaging/Reporting.cs
+++ b/src/DotNetOpenAuth.Messaging/Reporting.cs
@@ -142,6 +142,9 @@ namespace DotNetOpenAuth {
}
}
+ /// <summary>
+ /// Gets the observed features.
+ /// </summary>
internal static PersistentHashSet ObservedFeatures {
get { return observedFeatures; }
}
@@ -312,6 +315,20 @@ namespace DotNetOpenAuth {
}
/// <summary>
+ /// Called by every internal/public method on this class to give
+ /// periodic operations a chance to run.
+ /// </summary>
+ protected static void Touch() {
+ // Publish stats if it's time to do so.
+ lock (publishingConsiderationLock) {
+ if (DateTime.Now - lastPublished > Configuration.MinimumReportingInterval) {
+ lastPublished = DateTime.Now;
+ SendStatsAsync();
+ }
+ }
+ }
+
+ /// <summary>
/// Initializes Reporting if it has not been initialized yet.
/// </summary>
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "This method must never throw.")]
@@ -483,20 +500,6 @@ namespace DotNetOpenAuth {
}
/// <summary>
- /// Called by every internal/public method on this class to give
- /// periodic operations a chance to run.
- /// </summary>
- protected static void Touch() {
- // Publish stats if it's time to do so.
- lock (publishingConsiderationLock) {
- if (DateTime.Now - lastPublished > Configuration.MinimumReportingInterval) {
- lastPublished = DateTime.Now;
- SendStatsAsync();
- }
- }
- }
-
- /// <summary>
/// Sends the stats report asynchronously, and careful to not throw any unhandled exceptions.
/// </summary>
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Unhandled exceptions MUST NOT be thrown from here.")]