summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth/Messaging/ChannelEventArgs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOAuth/Messaging/ChannelEventArgs.cs')
-rw-r--r--src/DotNetOAuth/Messaging/ChannelEventArgs.cs25
1 files changed, 20 insertions, 5 deletions
diff --git a/src/DotNetOAuth/Messaging/ChannelEventArgs.cs b/src/DotNetOAuth/Messaging/ChannelEventArgs.cs
index 18c1d3a..82506c3 100644
--- a/src/DotNetOAuth/Messaging/ChannelEventArgs.cs
+++ b/src/DotNetOAuth/Messaging/ChannelEventArgs.cs
@@ -1,16 +1,31 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
+//-----------------------------------------------------------------------
+// <copyright file="ChannelEventArgs.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
namespace DotNetOAuth.Messaging {
+ using System;
+
+ /// <summary>
+ /// The data packet sent with Channel events.
+ /// </summary>
public class ChannelEventArgs : EventArgs {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="ChannelEventArgs"/> class.
+ /// </summary>
+ /// <param name="message">The message behind the fired event..</param>
internal ChannelEventArgs(IProtocolMessage message) {
- if (message == null) throw new ArgumentNullException("message");
+ if (message == null) {
+ throw new ArgumentNullException("message");
+ }
this.Message = message;
}
+ /// <summary>
+ /// Gets the message that caused the event to fire.
+ /// </summary>
public IProtocolMessage Message { get; private set; }
}
}