public void BeforeInstall() { if (NancyServiceConfiguration.ShouldCreateUrlReservationsOnInstall) { _urlReservationsHelper.TryDeleteUrlReservations(); _urlReservationsHelper.AddUrlReservations(); } }
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(); } }