コード例 #1
0
 public void BeforeInstall()
 {
     if (NancyServiceConfiguration.ShouldCreateUrlReservationsOnInstall)
     {
         _urlReservationsHelper.TryDeleteUrlReservations();
         _urlReservationsHelper.AddUrlReservations();
     }
 }
コード例 #2
0
        public void BeforeInstall()
        {
            if (NancyServiceConfiguration.ShouldCreateUrlReservationsOnInstall)
            {
                _urlReservationsHelper.TryDeleteUrlReservations();

                if (NancyServiceConfiguration.ShouldOpenFirewallPorts)
                {
                    var ports = NancyServiceConfiguration.Uris.Select(x => x.Port).ToList();
                    _urlReservationsHelper.OpenFirewallPorts(ports, NancyServiceConfiguration.FirewallRuleName);
                }

                _urlReservationsHelper.AddUrlReservations();
            }
        }