Browse Source

Move to `AbpAspNetCoreMvcModule`

pull/12302/head
maliming 5 years ago
parent
commit
65e26c0f0e
No known key found for this signature in database GPG Key ID: 96224957E51C89E
  1. 6
      framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/AbpAspNetCoreMvcModule.cs
  2. 5
      framework/src/Volo.Abp.Http/Volo/Abp/Http/AbpHttpModule.cs

6
framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/AbpAspNetCoreMvcModule.cs

@ -36,6 +36,7 @@ using Volo.Abp.Http;
using Volo.Abp.DynamicProxy;
using Volo.Abp.GlobalFeatures;
using Volo.Abp.Http.Modeling;
using Volo.Abp.Http.ProxyScripting.Generators.JQuery;
using Volo.Abp.Json;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;
@ -185,6 +186,11 @@ public class AbpAspNetCoreMvcModule : AbpModule
endpointContext.Endpoints.MapRazorPages();
});
});
Configure<DynamicJavaScriptProxyOptions>(options =>
{
options.DisableModule("abp");
});
}
public override void PostConfigureServices(ServiceConfigurationContext context)

5
framework/src/Volo.Abp.Http/Volo/Abp/Http/AbpHttpModule.cs

@ -17,10 +17,5 @@ public class AbpHttpModule : AbpModule
{
options.Generators[JQueryProxyScriptGenerator.Name] = typeof(JQueryProxyScriptGenerator);
});
Configure<DynamicJavaScriptProxyOptions>(options =>
{
options.DisableModule("abp");
});
}
}

Loading…
Cancel
Save