public override void Destroy(Prison prison) { if (prison == null) { throw new ArgumentNullException("prison"); } Httpsys.RemovePortAccess(prison.Configuration.UrlPortAccess, true); }
public override void Apply(Prison prison) { if (prison == null) { throw new ArgumentNullException("prison"); } Httpsys.RemovePortAccess(prison.Configuration.UrlPortAccess, true); Httpsys.AddPortAccess(prison.Configuration.UrlPortAccess, prison.User.UserName); }