CommandAssembly.cs 1011 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Configuration;
  4. using System.Linq;
  5. using System.Text;
  6. using SuperSocket.Common;
  7. using SuperSocket.SocketBase.Config;
  8. namespace SuperSocket.SocketEngine.Configuration
  9. {
  10. /// <summary>
  11. /// Command assembly configuration element
  12. /// </summary>
  13. public class CommandAssembly : ConfigurationElement, ICommandAssemblyConfig
  14. {
  15. /// <summary>
  16. /// Gets the assembly name.
  17. /// </summary>
  18. /// <value>
  19. /// The assembly.
  20. /// </value>
  21. [ConfigurationProperty("assembly", IsRequired = false)]
  22. public string Assembly
  23. {
  24. get { return this["assembly"] as string; }
  25. }
  26. }
  27. /// <summary>
  28. /// Command assembly configuation collection
  29. /// </summary>
  30. [ConfigurationCollection(typeof(CommandAssembly))]
  31. public class CommandAssemblyCollection : GenericConfigurationElementCollectionBase<CommandAssembly, ICommandAssemblyConfig>
  32. {
  33. }
  34. }