MainPageAttribute.cs 392 B

1234567891011121314151617
  1. using System;
  2. namespace Shaker.Models
  3. {
  4. [AttributeUsage(AttributeTargets.Class)]
  5. public sealed class MainPageAttribute:Attribute
  6. {
  7. public MainPageAttribute(MainPageType pageType, bool cache= false)
  8. {
  9. PageType = pageType;
  10. Cache = cache;
  11. }
  12. public MainPageType PageType { get; }
  13. public bool Cache { get; }
  14. }
  15. }