Skip to content

Commit 62f37ca

Browse files
authored
Blocking Acrolinx fixes
1 parent 69cef8b commit 62f37ca

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

articles/azure-functions/dotnet-isolated-process-guide.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -498,17 +498,17 @@ Here are some of the parameters that you can include as part of a function metho
498498

499499
- [Bindings](#bindings), which are marked as such by decorating the parameters as attributes. The function must contain exactly one trigger parameter.
500500
- 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.
502502

503503
### Execution context
504504

505505
.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).
506506

507-
### Cancellation tokens
507+
### Cancelation tokens
508508

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.
510510

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:
512512

513513
```csharp
514514
[Function(nameof(ThrowOnCancellation))]
@@ -528,7 +528,7 @@ public async Task ThrowOnCancellation(
528528
}
529529
```
530530

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:
532532

533533
```csharp
534534
[Function(nameof(HandleCancellationCleanup))]
@@ -555,19 +555,19 @@ public async Task HandleCancellationCleanup(
555555
}
556556
```
557557

558-
#### Scenarios that lead to cancellation
558+
#### Scenarios that lead to cancelation
559559

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,
561561
and those could vary depending on the trigger type being used. Some common reasons are:
562562

563563
1. Client disconnect: the client that is invoking your function disconnected. This is most likely for HttpTrigger functions.
564564
2. Function app restart: if you, or the platform, restart (or stop) the Function App around the same time an invocation is requested.
565565
A restart can occur due to worker instance movements, worker instance updates, or scaling.
566566
- 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.
567567

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.
569569

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:
571571

572572
```json
573573
{
@@ -581,7 +581,7 @@ If you do not want pre-cancelled invocations to be sent to the worker, you can a
581581
>
582582
> `Cancellation has been requested. The invocation request with id '{invocationId}' is canceled and will not be sent to the worker`
583583
>
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
585585
> an incoming invocation request to the worker. This exception can be safely ignored and would be expected when `SendCanceledInvocationsToWorker`
586586
> is `false`.
587587
@@ -644,7 +644,7 @@ When using custom return types for multiple output bindings with ASP.NET Core in
644644

645645
### SDK types
646646

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.
648648

649649
| Dependency | Version requirement |
650650
|-|-|

0 commit comments

Comments
 (0)