# RequestContext.Set(string, object)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.requestcontext/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.requestcontext/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/Runtime/RequestContext.cs#L88-L115)

```csharp
public static void Set(string key, object value)
```

Sets a value in the request context.

### Parameters

- `key` (`string`): The key for the value to be updated or added.
- `value` (`object`): The value to be stored into the request context.
