Class ProtoAttachmentCapture

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

Adds a captured payload as an attachment without ever failing the operation: a failure is traced as a failed event with the operation as its parent, the rule gRPC, messaging and web diagnostics share.

public static class ProtoAttachmentCapture
Inheritance
ProtoAttachmentCapture
Inherited Members

Methods

TryAdd(ProtoExecutionContext, ProtoTraceOperation, ProtoAttachmentFailure, string, Func<string>, string, string?)

public static void TryAdd(ProtoExecutionContext context, ProtoTraceOperation operation, ProtoAttachmentFailure failure, string attachmentName, Func<string> content, string mediaType, string? description = null)

Parameters

context ProtoExecutionContext
operation ProtoTraceOperation
failure ProtoAttachmentFailure
attachmentName string
content Func<string>
mediaType string
description string