public HttpSettings() { _methodFilters = new ActionMethodFilter(); _methodFilters.Excludes += m => m.Name == "Configure"; IncludeClassesSuffixedWithEndpoint(); }
public HttpSettings(MessagingSettings settings) { _methodFilters = new ActionMethodFilter(); _methodFilters.Excludes += m => m.Name == "Configure"; _transport = settings.Http; IncludeClassesSuffixedWithEndpoint(); }
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(); }
public ActionSource() { _methodFilters = new ActionMethodFilter(); _methodFilters.Excludes += m => m.Name == "Configure"; }