Class ProtoClientTrace

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

The client entity a traced operation belongs to. Every protocol records its client under the same id and name, so the viewer places a REST, GraphQL, gRPC or web operation on that client's timeline together.

public static class ProtoClientTrace
Inheritance
ProtoClientTrace
Inherited Members

Methods

ForClient(ProtoTraceScope, Type, string, string?)

Ties the operation to the client entity and records the client's name on it. Chain after Operation(...) in place of a bare For(...). entityName is the registration key when the logical name differs from it, so the operation links to the entity the client's configuration was recorded on.

public static ProtoTraceScope ForClient(this ProtoTraceScope scope, Type clientType, string name, string? entityName = null)

Parameters

scope ProtoTraceScope
clientType Type
name string
entityName string

Returns

ProtoTraceScope

Id(Type, string)

The entity id a client is recorded under: its concrete type and the name it was resolved by.

public static string Id(Type clientType, string name)

Parameters

clientType Type
name string

Returns

string