@@ -20,6 +20,7 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider {
2020 using System . Threading ;
2121 using System . Threading . Tasks ;
2222 using System . Web ;
23+ using System . Web . Http ;
2324 using System . Web . Http . Routing ;
2425 using System . Web . Http . SelfHost ;
2526 using System . Windows ;
@@ -39,12 +40,15 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider {
3940 using log4net . Core ;
4041 using Validation ;
4142
42- using System . Web . Http ;
43-
4443 /// <summary>
4544 /// Interaction logic for MainWindow.xaml
4645 /// </summary>
4746 public partial class MainWindow : Window , IDisposable {
47+ /// <summary>
48+ /// The main window for the app.
49+ /// </summary>
50+ internal static MainWindow Instance ;
51+
4852 /// <summary>
4953 /// The logger the application may use.
5054 /// </summary>
@@ -69,8 +73,6 @@ public MainWindow() {
6973 this . StartProviderAsync ( ) ;
7074 }
7175
72- internal static MainWindow Instance ;
73-
7476 #region IDisposable Members
7577
7678 /// <summary>
@@ -155,6 +157,7 @@ private void ClearLogButton_Click(object sender, RoutedEventArgs e) {
155157 /// <summary>
156158 /// Starts the provider.
157159 /// </summary>
160+ /// <returns>A task that completes when the asynchronous operation is finished.</returns>
158161 private async Task StartProviderAsync ( ) {
159162 Exception exception = null ;
160163 try {
@@ -199,6 +202,7 @@ private async Task StartProviderAsync() {
199202 /// <summary>
200203 /// Stops the provider.
201204 /// </summary>
205+ /// <returns>A task that completes when the asynchronous operation is finished.</returns>
202206 private async Task StopProviderAsync ( ) {
203207 if ( this . hostServer != null ) {
204208 await this . hostServer . CloseAsync ( ) ;
0 commit comments