CommandUpdateEventArgs.cs 812 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace SuperSocket.SocketBase.Command
  6. {
  7. /// <summary>
  8. /// CommandUpdateEventArgs
  9. /// </summary>
  10. /// <typeparam name="T"></typeparam>
  11. public class CommandUpdateEventArgs<T> : EventArgs
  12. {
  13. /// <summary>
  14. /// Gets the commands updated.
  15. /// </summary>
  16. public IEnumerable<CommandUpdateInfo<T>> Commands { get; private set; }
  17. /// <summary>
  18. /// Initializes a new instance of the <see cref="CommandUpdateEventArgs&lt;T&gt;"/> class.
  19. /// </summary>
  20. /// <param name="commands">The commands.</param>
  21. public CommandUpdateEventArgs(IEnumerable<CommandUpdateInfo<T>> commands)
  22. {
  23. Commands = commands;
  24. }
  25. }
  26. }