//----------------------------------------------------------------------- // // Copyright (c) Outercurve Foundation. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOpenAuth.InfoCard { using System; using System.Diagnostics.CodeAnalysis; using System.Diagnostics.Contracts; using System.Xml.XPath; /// /// Arguments for the event. /// public class ReceivedTokenEventArgs : EventArgs { /// /// Initializes a new instance of the class. /// /// The token. internal ReceivedTokenEventArgs(Token token) { this.Token = token; } /// /// Gets the processed token. /// public Token Token { get; private set; } #if CONTRACTS_FULL /// /// Verifies conditions that should be true for any valid state of this object. /// [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Justification = "Called by code contracts.")] [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Called by code contracts.")] [ContractInvariantMethod] private void ObjectInvariant() { Contract.Invariant(this.Token != null); } #endif } }