AppServerMetadataTypeAttribute.cs 849 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace SuperSocket.SocketBase.Metadata
  6. {
  7. /// <summary>
  8. /// StatusInfoMetadata type attribute
  9. /// </summary>
  10. public class AppServerMetadataTypeAttribute : Attribute
  11. {
  12. /// <summary>
  13. /// Gets the type of the metadata.
  14. /// </summary>
  15. /// <value>
  16. /// The type of the metadata.
  17. /// </value>
  18. public Type MetadataType { get; private set; }
  19. /// <summary>
  20. /// Initializes a new instance of the <see cref="AppServerMetadataTypeAttribute" /> class.
  21. /// </summary>
  22. /// <param name="metadataType">Type of the metadata.</param>
  23. public AppServerMetadataTypeAttribute(Type metadataType)
  24. {
  25. MetadataType = metadataType;
  26. }
  27. }
  28. }