> ## Documentation Index
> Fetch the complete documentation index at: https://klef.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# GrantChanges

> Applies grant changes one value at a time.

```csharp
public static class GrantChanges
```

## Methods

### ApplyAsync()

```csharp
public static Task<GrantOutcome> ApplyAsync(IEnumerable<string> add, IEnumerable<string> remove, Func<string, Task<WriteOutcome.InProgress?>> addOne, Func<string, Task<WriteOutcome.InProgress?>> removeOne)
```

Adds then removes each value, where a change may be left pending at the vendor.

#### Parameters

**add** `IEnumerable\<string\>` *required*

**remove** `IEnumerable\<string\>` *required*

**addOne** `Func\<String,Task\<InProgress\>\>` *required*

**Type:** `Func<String,Task<InProgress>>`

**removeOne** `Func\<String,Task\<InProgress\>\>` *required*

**Type:** `Func<String,Task<InProgress>>`

#### Returns

`Task<GrantOutcome>`

```csharp
public static Task<GrantOutcome> ApplyAsync(IEnumerable<string> add, IEnumerable<string> remove, Func<string, Task> addOne, Func<string, Task> removeOne)
```

Adds then removes each value, so one value's failure leaves the others to run.

#### Parameters

**add** `IEnumerable\<string\>` *required*

**remove** `IEnumerable\<string\>` *required*

**addOne** `Func\<string, Task\>` *required*

**removeOne** `Func\<string, Task\>` *required*

#### Returns

`Task<GrantOutcome>`

### IsAboutTheValue()

```csharp
public static bool IsAboutTheValue(FailureKind kind)
```

Whether a failure is about one value rather than the account or the connection.

#### Parameters

**kind** `FailureKind` *required*

#### Returns

`bool`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.