public AbpAspNetCoreConfiguration()
 {
     DefaultWrapResultAttribute = new WrapResultAttribute();
     DefaultUnitOfWorkAttribute = new UnitOfWorkAttribute();
     ServiceControllerSettings = new List<AbpServiceControllerSetting>();
     IsValidationEnabledForControllers = true;
 }
 public AbpMvcConfiguration()
 {
     DefaultUnitOfWorkAttribute = new UnitOfWorkAttribute();
     DefaultWrapResultAttribute = new WrapResultAttribute();
     IsValidationEnabledForControllers = true;
     IsAutomaticAntiForgeryValidationEnabled = true;
 }
 public AbpWebApiConfiguration()
 {
     HttpConfiguration = GlobalConfiguration.Configuration;
     DefaultUnitOfWorkAttribute = new UnitOfWorkAttribute();
     DefaultWrapResultAttribute = new WrapResultAttribute(false);
     DefaultDynamicApiWrapResultAttribute = new WrapResultAttribute();
     IsValidationEnabledForControllers = true;
 }
 public AbpAspNetCoreConfiguration()
 {
     DefaultWrapResultAttribute = new WrapResultAttribute();
     DefaultUnitOfWorkAttribute = new UnitOfWorkAttribute();
     ControllerAssemblySettings = new ControllerAssemblySettingList();
     FormBodyBindingIgnoredTypes = new List<Type>();
     IsValidationEnabledForControllers = true;
     SetNoCacheForAjaxResponses = true;
     IsAuditingEnabled = true;
 }
 public AbpWebApiConfiguration()
 {
     HttpConfiguration = GlobalConfiguration.Configuration;
     DefaultUnitOfWorkAttribute = new UnitOfWorkAttribute();
     DefaultWrapResultAttribute = new WrapResultAttribute(false);
     DefaultDynamicApiWrapResultAttribute = new WrapResultAttribute();
     ResultWrappingIgnoreUrls = new List<string>();
     IsValidationEnabledForControllers = true;
     IsAutomaticAntiForgeryValidationEnabled = true;
     SetNoCacheForAllResponses = true;
 }
Example #6
0
 private void SetCurrentMethodInfoAndWrapResultAttribute(ActionExecutingContext filterContext)
 {
     _currentMethodInfo = ActionDescriptorHelper.GetMethodInfo(filterContext.ActionDescriptor);
     _wrapResultAttribute =
         ReflectionHelper.GetSingleAttributeOfMemberOrDeclaringTypeOrNull<WrapResultAttribute>(_currentMethodInfo) ??
         WrapResultAttribute.Default;
 }
        private void SetCurrentMethodInfoAndWrapResultAttribute(ActionExecutingContext filterContext)
        {
            //Prevent overriding for child actions
            if (_currentMethodInfo != null)
            {
                return;
            }

            _currentMethodInfo = filterContext.ActionDescriptor.GetMethodInfoOrNull();
            _wrapResultAttribute =
                ReflectionHelper.GetSingleAttributeOfMemberOrDeclaringTypeOrDefault(
                    _currentMethodInfo,
                    AbpMvcConfiguration.DefaultWrapResultAttribute
                );
        }