예제 #1
0
        public override void Destroy(Prison prison)
        {
            if (prison == null)
            {
                throw new ArgumentNullException("prison");
            }

            Httpsys.RemovePortAccess(prison.Configuration.UrlPortAccess, true);
        }
예제 #2
0
        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);
        }