summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.AspNet/AuthenticationResult.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.AspNet/AuthenticationResult.cs')
-rw-r--r--src/DotNetOpenAuth.AspNet/AuthenticationResult.cs16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.AspNet/AuthenticationResult.cs b/src/DotNetOpenAuth.AspNet/AuthenticationResult.cs
index d5fb2d1..9e8492d 100644
--- a/src/DotNetOpenAuth.AspNet/AuthenticationResult.cs
+++ b/src/DotNetOpenAuth.AspNet/AuthenticationResult.cs
@@ -37,12 +37,24 @@ namespace DotNetOpenAuth.AspNet {
/// The exception.
/// </param>
public AuthenticationResult(Exception exception)
- : this(isSuccessful: false) {
- if (exception == null) {
+ : this(exception, provider: null) {
+ }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="AuthenticationResult"/> class.
+ /// </summary>
+ /// <param name="exception">The exception.</param>
+ /// <param name="provider">The provider name.</param>
+ public AuthenticationResult(Exception exception, string provider)
+ : this(isSuccessful: false)
+ {
+ if (exception == null)
+ {
throw new ArgumentNullException("exception");
}
this.Error = exception;
+ this.Provider = provider;
}
/// <summary>