示例#1
0
 public override void Destroy(Prison prison)
 {
     Httpsys.RemovePortAccess(prison.Rules.UrlPortAccess, true);
 }
示例#2
0
 public override void Apply(Prison prison)
 {
     Httpsys.RemovePortAccess(prison.Rules.UrlPortAccess, true);
     Httpsys.AddPortAccess(prison.Rules.UrlPortAccess, prison.User.Username);
 }