You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/dotnet-isolated-process-guide.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -498,17 +498,17 @@ Here are some of the parameters that you can include as part of a function metho
498
498
499
499
-[Bindings](#bindings), which are marked as such by decorating the parameters as attributes. The function must contain exactly one trigger parameter.
500
500
- An [execution context object](#execution-context), which provides information about the current invocation.
501
-
- A [cancellation token](#cancellation-tokens), used for graceful shutdown.
501
+
- A [cancelation token](#cancelation-tokens), used for graceful shutdown.
502
502
503
503
### Execution context
504
504
505
505
.NET isolated passes a [FunctionContext] object to your function methods. This object lets you get an [`ILogger`][ILogger] instance to write to the logs by calling the [GetLogger] method and supplying a `categoryName` string. You can use this context to obtain an [`ILogger`][ILogger] without having to use dependency injection. To learn more, see [Logging](#logging).
506
506
507
-
### Cancellation tokens
507
+
### Cancelation tokens
508
508
509
-
A function can accept a [CancellationToken](/dotnet/api/system.threading.cancellationtoken) parameter, which enables the operating system to notify your code when the function is about to be terminated. You can use this notification to make sure the function doesn't terminate unexpectedly in a way that leaves data in an inconsistent state.
509
+
A function can accept a [cancelationToken](/dotnet/api/system.threading.cancellationtoken) parameter, which enables the operating system to notify your code when the function is about to be terminated. You can use this notification to make sure the function doesn't terminate unexpectedly in a way that leaves data in an inconsistent state.
510
510
511
-
Cancellation tokens are supported in .NET functions when running in an isolated worker process. The following example raises an exception when a cancellation request is received:
511
+
Cancelation tokens are supported in .NET functions when running in an isolated worker process. The following example raises an exception when a cancelation request is received:
512
512
513
513
```csharp
514
514
[Function(nameof(ThrowOnCancellation))]
@@ -528,7 +528,7 @@ public async Task ThrowOnCancellation(
528
528
}
529
529
```
530
530
531
-
The following example performs clean-up actions when a cancellation request is received:
531
+
The following example performs clean-up actions when a cancelation request is received:
532
532
533
533
```csharp
534
534
[Function(nameof(HandleCancellationCleanup))]
@@ -555,19 +555,19 @@ public async Task HandleCancellationCleanup(
555
555
}
556
556
```
557
557
558
-
#### Scenarios that lead to cancellation
558
+
#### Scenarios that lead to cancelation
559
559
560
-
The cancellation token is signaled when the function invocation is canceled. Several reasons could lead to a cancellation,
560
+
The cancelation token is signaled when the function invocation is canceled. Several reasons could lead to a cancelation,
561
561
and those could vary depending on the trigger type being used. Some common reasons are:
562
562
563
563
1. Client disconnect: the client that is invoking your function disconnected. This is most likely for HttpTrigger functions.
564
564
2. Function app restart: if you, or the platform, restart (or stop) the Function App around the same time an invocation is requested.
565
565
A restart can occur due to worker instance movements, worker instance updates, or scaling.
566
566
- Invocations in-flight during a restart event may be retried depending on how they were triggered. Please refer to the [retry documentation](./functions-bindings-error-pages.md#retries) for further information.
567
567
568
-
For the isolated worker model, the host we will send the invocation through to the worker _even_ if the cancellation token was cancelled_before_ the host is able to send the invocation request to the worker.
568
+
For the isolated worker model, the host we will send the invocation through to the worker _even_ if the cancelation token was canceled_before_ the host is able to send the invocation request to the worker.
569
569
570
-
If you do not want pre-cancelled invocations to be sent to the worker, you can add the `SendCanceledInvocationsToWorker` property to your `host.json` file to disable this behaviour. The following example shows a `host.json` file that uses this property:
570
+
If you do not want pre-canceled invocations to be sent to the worker, you can add the `SendCanceledInvocationsToWorker` property to your `host.json` file to disable this behavior. The following example shows a `host.json` file that uses this property:
571
571
572
572
```json
573
573
{
@@ -581,7 +581,7 @@ If you do not want pre-cancelled invocations to be sent to the worker, you can a
581
581
>
582
582
> `Cancellation has been requested. The invocation request with id '{invocationId}' is canceled and will not be sent to the worker`
583
583
>
584
-
> This occurs when the cancellation token is cancelled (as a result of one of the events described above) _before_ the host has sent
584
+
> This occurs when the cancelation token is canceled (as a result of one of the events described above) _before_ the host has sent
585
585
> an incoming invocation request to the worker. This exception can be safely ignored and would be expected when `SendCanceledInvocationsToWorker`
586
586
> is `false`.
587
587
@@ -644,7 +644,7 @@ When using custom return types for multiple output bindings with ASP.NET Core in
644
644
645
645
### SDK types
646
646
647
-
For some service-specific binding types, binding data can be provided using types from service SDKs and frameworks. These provide more capability beyond what a serialized string or plain-old CLR object (POCO) can offer. To use the newer types, your project needs to be updated to use newer versions of core dependencies.
647
+
For some service-specific binding types, binding data can be provided using types from service SDKs and frameworks. These provide capabilities beyond what a serialized string or plain-old CLR object (POCO) can offer. To use the newer types, your project needs to be updated to use newer versions of core dependencies.
0 commit comments