title: How can I implement "firewall rules" style timebased ACL implemantation ? (C#, Sql Server)
body: <p>I'm using ServiceStack and I dont know if my way is true or not for this requirement with ServiceStack Permission support.</p>
  
  <p>Now rule table structure is:</p>
  
  <ul>
  <li>TargetRole</li>
  <li>TargetUserId</li>
  <li>DENY/ALLOW</li>
  <li>ActionTypeEnum</li>
  <li>StartDate</li>
  <li>EndDate</li>
  <li>StartHour</li>
  <li><p>EndHour</p></li>
  <li><p>RunningEnum ([Flags] OnlyOnce=1,Monday=2,....,Sunday=128)</p></li>
  </ul>
  
  <p>Rule:
  All admins could not (DENY) crateUser (ACTIONTYPEENUM.CREATEUSER) every Mondays (RUNNINGENUM=2) between 12-17 hours (STARTHOUR=12,ENDHOUR=17)  </p>
  
  <p>So I have to solve these rules (and if I can I have to bind with ServiceStack Permission), Is there any problem on my way or any better framework or ruleresolver in C# ?</p>