//-----------------------------------------------------------------------
//
// Copyright (c) Outercurve Foundation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.OAuth2 {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Validation;
///
/// Describes the results of a completed authorization flow.
///
public class ClientAuthorizationCompleteEventArgs : EventArgs {
///
/// Initializes a new instance of the class.
///
/// The authorization.
public ClientAuthorizationCompleteEventArgs(IAuthorizationState authorization) {
Requires.NotNull(authorization, "authorization");
this.Authorization = authorization;
}
///
/// Gets the authorization tracking object.
///
/// Null if authorization was rejected by the user.
public IAuthorizationState Authorization { get; private set; }
}
}