public CorsResourceSettings ForAllResources()
        {
            var settings = new CorsFluentSettings(this);

            settings.SetResources(null);
            return(new CorsResourceSettings(settings));
        }
        public CorsFluentSettings ForAllOrigins()
        {
            var settings = new CorsFluentSettings(this);

            settings.SetResources(null);
            settings.SetOrigins(null);
            return(settings);
        }
        public CorsResourceSettings ForResources(params string[] resources)
        {
            if (resources == null || resources.Length == 0)
            {
                throw new ArgumentException("Resources is null or empty.");
            }
            var settings = new CorsFluentSettings(this);

            settings.SetResources(resources);
            return(new CorsResourceSettings(settings));
        }
        public CorsFluentSettings ForOrigins(params string[] origins)
        {
            if (origins == null || origins.Length == 0)
            {
                throw new ArgumentException("origins is null or empty.");
            }
            var settings = new CorsFluentSettings(this);

            settings.SetResources(null);
            settings.SetOrigins(origins);
            return(settings);
        }
 public CorsFluentSettings ForAllOrigins()
 {
     var settings = new CorsFluentSettings(this);
     settings.SetResources(null);
     settings.SetOrigins(null);
     return settings;
 }
 public CorsFluentSettings ForOrigins(params string[] origins)
 {
     if (origins == null || origins.Length == 0)
     {
         throw new ArgumentException("origins is null or empty.");
     }
     var settings = new CorsFluentSettings(this);
     settings.SetResources(null);
     settings.SetOrigins(origins);
     return settings;
 }
 public CorsResourceSettings ForAllResources()
 {
     var settings = new CorsFluentSettings(this);
     settings.SetResources(null);
     return new CorsResourceSettings(settings);
 }
 public CorsResourceSettings ForResources(params string[] resources)
 {
     if (resources == null || resources.Length == 0)
     {
         throw new ArgumentException("Resources is null or empty.");
     }
     var settings = new CorsFluentSettings(this);
     settings.SetResources(resources);
     return new CorsResourceSettings(settings);
 }