SteveSandersonMS
9d5006107f
Bumping NodeServices/SpaServices versions to 1.1.0-rc1-* for RC1 release
2017-01-13 09:02:28 +00: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
fbb8054c2e
Make error message clearer if Node isn't installed (or not found on PATH). Fixes #527
2017-01-03 10:59:26 +00:00
SteveSandersonMS
70f59fc8ec
Update core package versions to 1.1.0-beta2-* so that CI will produce non-timestamped packages
2017-01-03 10:29:22 +00:00
SteveSandersonMS
eb98067e86
Update docs about using socket transport. Fixes #500
2016-12-13 15:59:43 +00:00
SteveSandersonMS
1c4682e50d
Fix all the ConditionalProxyMiddleware errors that happened if you ctrl+c on a "dotnet run" (not "dotnet watch run") since beta-000002.
2016-12-13 11:32:32 +00:00
Sébastien Ros
6545e11bf2
Fix filename in sample
...
Mismatch between code sample and described js filename.
2016-12-08 10:04:50 +00:00
SteveSandersonMS
2cffab14f6
StringAsTempFile cleans up in a wider range of circumstances (not relying on finalizer running). Helps with #7 but still doesn't cover all cases.
2016-11-30 15:04:08 +00:00
SteveSandersonMS
832da2a451
Split out 'socket' hosting model into a separate optional NuGet package, since most developers won't need it
2016-11-30 12:18:57 +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
4cbbf58600
Update core packages to version 1.1.0-*, upgrading .NET Core dependencies to match 1.1.0 release
2016-11-29 16:35:59 +00:00
SteveSandersonMS
3ff4447924
Add XML docs to core packages
2016-11-29 16:03:15 +00:00
SteveSandersonMS
3b91ad9b39
Make core package project.json files conform to org-wide conventions
2016-11-29 14:02:26 +00:00
SteveSandersonMS
bebf24952e
Add AssemblyInfo files to core packages
2016-11-29 13:04:21 +00:00
SteveSandersonMS
9f6b0b0573
Build SpaServices 'Node/Content/*.js' files from TypeScript sources
2016-11-28 16:56:02 +00:00
Brad Christensen
4fc1d60d67
Remove cancellationToken parameter as the method is no longer async
2016-10-05 17:14:15 +01:00
Brad Christensen
1d76284e25
Serialize node invocationInfo JSON directly to stream to avoid running out of memory
...
Fixed only for SocketNodeInstance, as it deals nicely with streams. Previously ~30MB of JSON text and 32-bit IIS Express would result in an OutOfMemoryException at the GetBytes method, which is now fixed by writing the JSON string directly to the stream and not handling it as a string in between.
2016-10-05 17:14:15 +01:00
SteveSandersonMS
bc42e598f9
Update NodeServices TypeScript compilation to use @types
2016-10-05 13:58:55 +01:00
SteveSandersonMS
57265509f7
Rebuild entrypoint-socket.js
2016-09-27 10:47:14 +01:00
SteveSandersonMS
7e88903bcc
Fix Node event chaining in VirtualConnectionServer to work with latest NPM libraries. Fixes #331 .
2016-09-27 10:28:50 +01:00
SteveSandersonMS
2ee0078cfd
Fix HttpNodeInstanceEntryPoint to match latest NPM modules
2016-09-15 14:15:03 +01:00
SteveSandersonMS
411100478a
Fix double-encoding typo
2016-09-08 12:14:45 +01: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
f358d8e2b2
In HttpNodeInstance, correctly report response serialisation errors back to .NET (previously, it just timed out)
2016-09-07 17:59:13 +01:00
SteveSandersonMS
465d0c8d15
Design review: Explicitly disable TypeNameHandling in all Json.NET usage
2016-09-07 17:12:01 +01:00
SteveSandersonMS
03dcae2407
Simplify docs
2016-09-01 17:52:26 +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
f04fb8c421
Design review: Always instantiate via DI
2016-09-01 15:51:53 +01:00
SteveSandersonMS
eed4d8c211
Child Node processes poll and exit when parent has exited. Fixes #270
2016-08-19 16:38:39 -07: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
Aaron Powell
2a6465b27a
FIxing path separator to address #247 ( #248 )
...
* Correcting path separator to ;
* Using the proper API from System.IO to get path separator
2016-08-08 10:54:22 +10:00
SteveSandersonMS
c892f7da35
Support debugging when on IPv6 network (Node's "Debugger listening" message is phrased differently there)
2016-07-27 09:50:43 +01: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
fae0a886af
Transfer multiline log messages from Node to .NET without treating each line as a separate log entry
2016-07-18 16:34:36 +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
8b5136825c
Update remaining doc references to Invoke<T> and InvokeExport<T>
2016-07-07 14:59:59 +01:00
SteveSandersonMS
b0bc80b4d6
Update docs around custom node instances to match latest API changes
2016-07-07 14:58:25 +01:00
SteveSandersonMS
3bc35aea21
Simplify docs around receiving an INodeServices instance from DI
2016-07-07 14:50:24 +01:00
SteveSandersonMS
920f1c8bf3
Replace references to Invoke and InvokeExport with InvokeAsync and InvokeExportAsync throughout docs
2016-07-07 14:47:36 +01:00
SteveSandersonMS
4b38519001
Change all links in docs to point to new main branch ('dev')
2016-07-07 14:43:14 +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
ce127f0d70
Implement connection draining feature
2016-07-07 13:18:48 +01:00
SteveSandersonMS
be13f0b7bf
Centralise the child-process-terminating logic in NodeServicesImpl - don't also do it in OutOfProcessNodeInstance. This works towards connection draining.
2016-07-07 12:52:15 +01:00
SteveSandersonMS
26e8bd823c
Instead of the Node process exiting instantly on file change, send a signal to .NET that it should restart. This is working towards the connection-draining feature.
2016-07-07 12:01:28 +01:00
SteveSandersonMS
a19e37f3c0
Move logic for restarting Node child process into NodeServicesImpl. Tidy up lots.
2016-07-07 11:35:25 +01:00