Exemple #1
0
        /// <summary>
        /// Gets javascript proxy for all services.
        /// </summary>
        public HttpResponseMessage GetAll()
        {
            var script   = ScriptProxyManager.GetAllScript();
            var response = Request.CreateResponse(System.Net.HttpStatusCode.OK, script, new PlainTextFormatter());

            response.Content.Headers.ContentType = new MediaTypeHeaderValue("application/x-javascript");
            return(response);
        }
Exemple #2
0
 public ServiceProxiesController(ScriptProxyManager scriptProxyManager)
 {
     _scriptProxyManager = scriptProxyManager;
 }
 public ServiceProxiesController(ScriptProxyManager scriptProxyManager)
 {
     _scriptProxyManager = scriptProxyManager;
 }
 public AbpServiceProxiesController(ScriptProxyManager scriptProxyManager,
                                    IJavaScriptMinifier javaScriptMinifier)
 {
     _scriptProxyManager = scriptProxyManager;
     _javaScriptMinifier = javaScriptMinifier;
 }