//----------------------------------------------------------------------- // // Copyright (c) Outercurve Foundation. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOpenAuth.Messaging { using System; using Validation; /// /// The data packet sent with Channel events. /// public class ChannelEventArgs : EventArgs { /// /// Initializes a new instance of the class. /// /// The message behind the fired event.. internal ChannelEventArgs(IProtocolMessage message) { Requires.NotNull(message, "message"); this.Message = message; } /// /// Gets the message that caused the event to fire. /// public IProtocolMessage Message { get; private set; } } }