# RequestContextExtensions Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.requestcontextextensions/)

## Export(DeepCopier) {#export-orleans-serialization-deepcopier-a444c586}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.requestcontextextensions/methods/export-orleans-serialization-deepcopier-a444c586/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Runtime/RequestContextExtensions.cs#L40-L46)

```csharp
public static Dictionary<string, object>? Export(DeepCopier copier)
```

Exports a copy of the current [RequestContext](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.requestcontext/).

### Parameters

- `copier` (`DeepCopier`): The copier.

### Returns

A copy of the current request context.

## Import(Dictionary&lt;string, object&gt;) {#import-system-collections-generic-dictionary-string-object-nullable-d213bac2}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.runtime.requestcontextextensions/methods/import-system-collections-generic-dictionary-string-object-nullable-d213bac2/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Runtime/RequestContextExtensions.cs#L21-L31)

```csharp
public static void Import(Dictionary<string, object>? contextData)
```

Imports the specified context data into the current [RequestContext](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.requestcontext/), clearing all existing values.

### Parameters

- `contextData` (`Dictionary<string, object>`): The context data.
