~ircdotnet-dev/ircdotnet/0.4

« back to all changes in this revision

Viewing changes to src/IrcDotNet/IrcEventArgs.cs

  • Committer: Alex Regueiro
  • Date: 2011-06-24 23:53:39 UTC
  • Revision ID: alexreg@gmail.com-20110624235339-zhr44fxo9wilvwg4
Completed implementation for handling replies to STATS messages. Created test and verified it against server.
Improved debugging capabilities for library. Lines for sent messages are now only sent when data is written to socket.
Updated XML comments for library.
Changed extensions of .txt files in root dir to .md (to indicate Markdown content).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
using System.Collections.Generic;
3
3
using System.Collections.ObjectModel;
4
4
using System.Linq;
5
 
#if !SILVERLIGHT
6
 
using System.Net.Security;
7
 
#endif
8
5
using System.Security.Cryptography;
9
6
using System.Security.Cryptography.X509Certificates;
10
7
using System.Text;
11
8
 
 
9
#if !SILVERLIGHT
 
10
using System.Net.Security;
 
11
#endif
 
12
 
12
13
namespace IrcDotNet
13
14
{
14
15
    /// <summary>
188
189
    }
189
190
 
190
191
    /// <summary>
 
192
    /// Provides data for the <see cref="IrcClient.ServerStatsReceived"/> event.
 
193
    /// </summary>
 
194
    /// <threadsafety static="true" instance="false"/>
 
195
    public class IrcServerStatsReceivedEventArgs : EventArgs
 
196
    {
 
197
        /// <summary>
 
198
        /// Initializes a new instance of the <see cref="IrcServerStatsReceivedEventArgs"/> class.
 
199
        /// </summary>
 
200
        /// <param name="entries">A list of statistical entries that was returned by the server.</param>
 
201
        public IrcServerStatsReceivedEventArgs(IList<IrcServerStatisticalEntry> entries)
 
202
            : base()
 
203
        {
 
204
            if (entries == null)
 
205
                throw new ArgumentNullException("entries");
 
206
 
 
207
            this.Entries = new ReadOnlyCollection<IrcServerStatisticalEntry>(entries);
 
208
        }
 
209
 
 
210
        /// <summary>
 
211
        /// Gets the list of statistical entries that was returned by the server.
 
212
        /// </summary>
 
213
        /// <value>The list of statistical entries.</value>
 
214
        public IList<IrcServerStatisticalEntry> Entries
 
215
        {
 
216
            get;
 
217
            private set;
 
218
        }
 
219
    }
 
220
 
 
221
    /// <summary>
191
222
    /// <inheritdoc select="/summary/node()"/>
192
223
    /// Gives the option to handle the preview event and thus stop the normal event from being raised.
193
224
    /// </summary>