summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OAuth2.Client.UI/OAuth2/ClientAuthorizationCompleteEventArgs.cs
blob: d7a080c5836b53865c18d16b85b231fa67bf1554 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//-----------------------------------------------------------------------
// <copyright file="ClientAuthorizationCompleteEventArgs.cs" company="Outercurve Foundation">
//     Copyright (c) Outercurve Foundation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace DotNetOpenAuth.OAuth2 {
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Text;
	using Validation;

	/// <summary>
	/// Describes the results of a completed authorization flow.
	/// </summary>
	public class ClientAuthorizationCompleteEventArgs : EventArgs {
		/// <summary>
		/// Initializes a new instance of the <see cref="ClientAuthorizationCompleteEventArgs"/> class.
		/// </summary>
		/// <param name="authorization">The authorization.</param>
		public ClientAuthorizationCompleteEventArgs(IAuthorizationState authorization) {
			Requires.NotNull(authorization, "authorization");
			this.Authorization = authorization;
		}

		/// <summary>
		/// Gets the authorization tracking object.
		/// </summary>
		/// <value>Null if authorization was rejected by the user.</value>
		public IAuthorizationState Authorization { get; private set; }
	}
}