Table of Contents

SaveMetadata Method

Definition

Namespace
Savvyio
Assemblies
Savvyio.Core.dll
Source
src/Savvyio.Core/MetadataExtensions.cs

SaveMetadata<T>(T, string, object)

Add or update a set of model to the request.

public static T SaveMetadata<T>(this T request, string key, object value) where T : IMetadata

Parameters

request T

The IMetadata to extend.

key string

The key of the element to add or update.

value object

The value of the element to add or update.

Returns

T

A reference to request after the operation has completed.

Type Parameters

T

The model that implements the IMetadata interface.

Exceptions

ArgumentNullException

request cannot be null -or- key cannot be null.