Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Implentation own ScriptProxyManager #9206


User avatar
0
Plasseraud created

i want create my own ScriptProxyManager because the orignial is too slow ( 8 sec. ).

how implement this ?


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Plasseraud,

    Do you mean AbpScripts/GetScripts request ?

  • User Avatar
    0
    Plasseraud created

    Hi, No for the AbpServiceProxies.

    I have created a new controller and inject ScriptProxyManager in my controller.

    but this line var script = _scriptProxyManager.GetAllScript(type); return empyt string

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    1. Do you use MVC 5.x ?
    2. You can create a copy of https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Web.Api/WebApi/Controllers/Dynamic/Scripting/ScriptProxyManager.cs and use it in your case. So, you can degub and see where is the problem.
  • User Avatar
    0
    Plasseraud created

    I use .net core I have created a copy of ScriptProxyManager in the Porject application but _dynamicApiControllerManager.GetAll() return empty list

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    That's because it is defined for ASP.NET MVC 5.x.