Exemple #1
0
        public HttpSettings()
        {
            _methodFilters           = new ActionMethodFilter();
            _methodFilters.Excludes += m => m.Name == "Configure";


            IncludeClassesSuffixedWithEndpoint();
        }
Exemple #2
0
        public HttpSettings(MessagingSettings settings)
        {
            _methodFilters           = new ActionMethodFilter();
            _methodFilters.Excludes += m => m.Name == "Configure";


            _transport = settings.Http;
            IncludeClassesSuffixedWithEndpoint();
        }
Exemple #3
0
        public JasperHttpOptions()
        {
            _methodFilters           = new ActionMethodFilter();
            _methodFilters.Excludes += m => m.Name == "Configure";

            MethodFilters.Excludes += m => m.DeclaringType == typeof(object);
            MethodFilters.Excludes += m => m.HasAttribute <JasperIgnoreAttribute>();
            MethodFilters.Excludes += m => m.DeclaringType.HasAttribute <JasperIgnoreAttribute>();

            MethodFilters.Includes += m => m.Name.EqualsIgnoreCase("Index");
            MethodFilters.Includes += m => m.HasAttribute <HttpMethodAttribute>();

            MethodFilters.Includes += m =>
            {
                return(HttpVerbs.All.Contains(m.Name, StringComparer.OrdinalIgnoreCase) ||
                       HttpVerbs.All.Any(x => m.Name.StartsWith(x + "_", StringComparison.OrdinalIgnoreCase)));
            };


            IncludeClassesSuffixedWithEndpoint();
        }
Exemple #4
0
 public ActionSource()
 {
     _methodFilters           = new ActionMethodFilter();
     _methodFilters.Excludes += m => m.Name == "Configure";
 }