Table of Contents

Class RequestContextFeature

Namespace
IceRpc.Features
Assembly
IceRpc.dll

Default implementation of IRequestContextFeature.

public sealed class RequestContextFeature : IRequestContextFeature
Inheritance
RequestContextFeature
Implements
Inherited Members

Constructors

RequestContextFeature()

Constructs an empty request context feature.

public RequestContextFeature()

RequestContextFeature(IReadOnlyDictionary<string, string>)

Constructs a request context feature wrapping the specified dictionary.

public RequestContextFeature(IReadOnlyDictionary<string, string> value)

Parameters

value IReadOnlyDictionary<string, string>

The dictionary held by the new feature. It is copied to an ImmutableDictionary<TKey, TValue> unless it is already one, so post-construction mutations to value cannot alter the feature.

Properties

Value

Gets the value of this feature.

public IReadOnlyDictionary<string, string> Value { get; }

Property Value

IReadOnlyDictionary<string, string>

The request context.