Table of Contents

SetCausationId Method

Definition

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

SetCausationId<T>(T, string)

Assigns a new causationId to the request.

public static T SetCausationId<T>(this T request, string causationId) where T : IMetadata

Parameters

request T

The IMetadata to extend.

causationId string

The causation identifier of the model.

Returns

T

A reference to request after the operation has completed.

Type Parameters

T

The model that implements the IMetadata interface.