Skip to content

Commit 8b51368

Browse files
Update remaining doc references to Invoke<T> and InvokeExport<T>
1 parent b0bc80b commit 8b51368

File tree

1 file changed

+2
-2
lines changed
  • src/Microsoft.AspNetCore.NodeServices

1 file changed

+2
-2
lines changed

src/Microsoft.AspNetCore.NodeServices/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ var nodeServices = Configuration.CreateNodeServices(new NodeServicesOptions {
184184

185185
If you create a `NodeServices` instance this way, you can also dispose it (call `nodeServiceInstance.Dispose();`) and it will shut down the associated Node instance. But because these instances are expensive to create, you should whenever possible retain and reuse your `NodeServices` object. They are thread-safe - you can call `nodeServiceInstance.InvokeAsync<T>(...)` simultaneously from multiple threads.
186186

187-
### Invoke&lt;T&gt;
187+
### InvokeAsync&lt;T&gt;
188188

189189
**Signature:**
190190

@@ -264,7 +264,7 @@ There's a working image resizing example following this approach [here](https://
264264
* A JSON-serializable .NET type, if your JavaScript code uses the `callback(error, result)` pattern to return an object, as in example 1 above
265265
* Or, the type `System.IO.Stream`, if your JavaScript code writes data to the `result.stream` object (which is a [Node `Duplex` stream](https://nodejs.org/api/stream.html#stream_class_stream_duplex)), as in example 2 above
266266

267-
### InvokeExport&lt;T&gt;
267+
### InvokeExportAsync&lt;T&gt;
268268

269269
**Signature**
270270

0 commit comments

Comments
 (0)