/// <summary> /// Initializes a new instance of the <see cref="ConfigurableNancyModule"/> class. /// </summary> /// <param name="modulePath">The path that all routes in the module should be relative too.</param> /// <param name="closure">The configuration of the module.</param> public ConfigurableNancyModule(string modulePath, Action <ConfigurableNancyModuleConfigurator> closure) : base(modulePath) { var configurator = new ConfigurableNancyModuleConfigurator(this); closure.Invoke(configurator); }
/// <summary> /// Initializes a new instance of the <see cref="ConfigurableNancyModule"/> class. /// </summary> /// <param name="modulePath">The path that all routes in the module should be relative too.</param> /// <param name="closure">The configuration of the module.</param> public ConfigurableNancyModule(string modulePath, Action<ConfigurableNancyModuleConfigurator> closure) : base(modulePath) { var configurator = new ConfigurableNancyModuleConfigurator(this); closure.Invoke(configurator); }