summaryrefslogtreecommitdiffstats
path: root/samples/OpenIdOfflineProvider/MainWindow.xaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/OpenIdOfflineProvider/MainWindow.xaml.cs')
-rw-r--r--samples/OpenIdOfflineProvider/MainWindow.xaml.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/samples/OpenIdOfflineProvider/MainWindow.xaml.cs b/samples/OpenIdOfflineProvider/MainWindow.xaml.cs
index 2297a2a..dc3a500 100644
--- a/samples/OpenIdOfflineProvider/MainWindow.xaml.cs
+++ b/samples/OpenIdOfflineProvider/MainWindow.xaml.cs
@@ -20,6 +20,7 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider {
using System.Threading;
using System.Threading.Tasks;
using System.Web;
+ using System.Web.Http;
using System.Web.Http.Routing;
using System.Web.Http.SelfHost;
using System.Windows;
@@ -39,13 +40,16 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider {
using log4net.Core;
using Validation;
- using System.Web.Http;
-
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window, IDisposable {
/// <summary>
+ /// The main window for the app.
+ /// </summary>
+ internal static MainWindow Instance;
+
+ /// <summary>
/// The logger the application may use.
/// </summary>
private ILog logger = log4net.LogManager.GetLogger(typeof(MainWindow));
@@ -69,8 +73,6 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider {
this.StartProviderAsync();
}
- internal static MainWindow Instance;
-
#region IDisposable Members
/// <summary>
@@ -155,6 +157,7 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider {
/// <summary>
/// Starts the provider.
/// </summary>
+ /// <returns>A task that completes when the asynchronous operation is finished.</returns>
private async Task StartProviderAsync() {
Exception exception = null;
try {
@@ -199,6 +202,7 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider {
/// <summary>
/// Stops the provider.
/// </summary>
+ /// <returns>A task that completes when the asynchronous operation is finished.</returns>
private async Task StopProviderAsync() {
if (this.hostServer != null) {
await this.hostServer.CloseAsync();