Пример #1
0
        public static void Web(this IGenericHostConfigurator configurator, string name, Action <IWebComponentSetupConfigurator> config)
        {
            if (string.IsNullOrWhiteSpace(name))
            {
                throw new ArgumentNullException(nameof(name));
            }

            var spec = new WebComponentSetupSpecification(name);

            config?.Invoke(spec);

            configurator.AddComponentSpecification(spec);
        }
Пример #2
0
 public static void Web(this IGenericHostConfigurator configurator, Action <IWebComponentSetupConfigurator> config)
 {
     configurator.Web("Web", config);
 }
Пример #3
0
 public static void IdSvr4(this IGenericHostConfigurator configurator, Action <IIdSvr4SetupConfigurator>?config = null)
 {
     configurator.IdSvr4("IdSvr4", config);
 }