Tadas Mazutis
78f7dccfab
Performance fix
...
- Usage of resolved loopback IP address instead of 'localhost'
Addresses #1588
2018-04-16 14:45:16 +01:00
Eric Green
372e597f34
Added Timeout to HttpClient to always be longer than the InvocationTimeoutMilliseconds.
...
HttpClient defaults to 100 seconds. If InvocationTimeoutMilliseconds is greater than the default of the HttpClient, the task will fail with a Task was canceled exception.
2017-08-02 09:22:34 +01:00
Sławomir Rosiek
4ceed817a3
Removed unused methods
2017-06-20 16:33:34 +01:00
Sławomir Rosiek
6d85e752e1
Throwing HttpInvocationException instead of generic Exception
2017-06-20 16:33:34 +01:00
Steve Sanderson
b444831c8d
Remove System.Runtime.Loader dependency to enable net461 support. Use IApplicationLifetime instead of AssemblyLoadContext.Default.Unloading.
2017-06-07 14:58:44 +01:00
Niclas Emdelius
49bece54c2
Check if response is stream or object without using reference to reflection package.
2017-01-03 13:29:45 +00:00
nicemd
0907379da8
Streamed responses can be be Object or Stream
...
See issue https://github.com/aspnet/JavaScriptServices/issues/518
2017-01-03 13:29:45 +00:00
SteveSandersonMS
ebf5a18344
Eliminate the NodeHostingModel enum because it isn't extensible. Instead, use extension methods on NodeServicesOptions to configure a NodeInstanceFactory.
2016-11-30 11:29:57 +00:00
SteveSandersonMS
041d173f56
All NodeServices invocations now have a default timeout, plus a descriptive exception if that happens
2016-09-08 12:08:42 +01:00
SteveSandersonMS
2799861296
Support cancellation of NodeServices invocations
2016-09-08 10:56:50 +01:00
SteveSandersonMS
465d0c8d15
Design review: Explicitly disable TypeNameHandling in all Json.NET usage
2016-09-07 17:12:01 +01:00
SteveSandersonMS
f0d954b2a6
Design review: Change AddNodeServices to take an Action<NodeServicesOptions> like other aspects of MVC DI config
2016-09-01 17:46:59 +01:00
SteveSandersonMS
098159998d
Add ability to configure environment variables for Node instances, plus auto-populate NODE_ENV based on IHostingEnvironment when possible. Fixes #230
2016-08-16 16:26:07 -07:00
SteveSandersonMS
f2f67fe880
Support new config options to launch the Node process with a debug listener. This is compatible with node-inspector.
2016-07-26 18:33:27 +01:00
SteveSandersonMS
f4efcacd40
Switch to native .NET logging APIs
2016-07-18 15:56:45 +01:00
Paul Knopf
27ffa72e0d
Adding support for capturing the output of a node instance for custom logging implementations.
2016-07-18 15:07:09 +01:00
SteveSandersonMS
a14d9ba2df
Change onBeforeStartExternalProcess to a virtual method, so as to avoid expanding the set of constructor params in all hosting models
2016-07-18 14:39:36 +01:00
thunder7553
7119815d04
Added OnBeforeStartExternalProcess callback which to NodeServicesOptions (and OutOfProcessNodeInstance, SocketNodeInstance and HttpNodeInstance) to configure environment of the node.exe process to be started, and the path to the node executable itself. Fixes #20
2016-07-18 14:24:07 +01:00
SteveSandersonMS
eec370e938
Move file-watching logic into .NET to avoid Node's fs.watch issues on Windows ( #128 )
2016-07-07 14:25:54 +01:00
SteveSandersonMS
a19e37f3c0
Move logic for restarting Node child process into NodeServicesImpl. Tidy up lots.
2016-07-07 11:35:25 +01:00
SteveSandersonMS
4fb3b18868
Create new top-level DefaultNodeInstance concept that will soon hold the "connection draining" logic
2016-07-06 18:23:25 +01:00
SteveSandersonMS
967edd2b2a
Support streamed response from HttpNodeInstance
2016-06-07 16:49:40 +01:00
pauldotknopf
50ee405656
Workaround for a bug in .NET Core. This issue is referenced by #92 . It is has been reported to the dotnet corefx team here: dotnet/corefx#8809 The issue won't be resolved in 1.0.0, so @stephentoub recommended that we reuse the HttpClient.
2016-06-01 16:49:40 +01:00
SteveSandersonMS
cb289fd387
Further stylistic tweaks
2016-05-31 22:29:27 +01:00
Andrei Tserakhau
95cba7f5dd
refactor: apply default vs transform to xproj
...
refactor(spa-services): clean code
refactor(node-services): clean code, extract classes nto separate files
refactor(angular-services): prime cache cleanup
2016-05-25 16:08:49 +03:00
SteveSandersonMS
25c728f885
Change all Microsoft.AspNet.* namespaces and references to Microsoft.AspNetCore.*
2016-05-02 13:13:49 -07:00
SteveSandersonMS
4a0e4bdf1a
Rename Microsoft.AspNet.* packages folders to Microsoft.AspNetCore.*
2016-05-02 13:13:49 -07:00