Table of Contents

Class GrpcAgentRuntimeExtensions

Namespace
Microsoft.AutoGen.Core.Grpc
Assembly
Microsoft.AutoGen.Core.Grpc.dll
public static class GrpcAgentRuntimeExtensions
Inheritance
GrpcAgentRuntimeExtensions
Inherited Members

Methods

ExtractMetadata(GrpcAgentRuntime, MapField<string, CloudEventAttributeValue>)

public static IDictionary<string, string> ExtractMetadata(GrpcAgentRuntime worker, MapField<string, CloudEvent.Types.CloudEventAttributeValue> metadata)

Parameters

worker GrpcAgentRuntime
metadata MapField<string, CloudEvent.Types.CloudEventAttributeValue>

Returns

IDictionary<string, string>

ExtractMetadata(GrpcAgentRuntime, IDictionary<string, string>)

public static IDictionary<string, string> ExtractMetadata(GrpcAgentRuntime worker, IDictionary<string, string> metadata)

Parameters

worker GrpcAgentRuntime
metadata IDictionary<string, string>

Returns

IDictionary<string, string>

GetTraceIdAndState(GrpcAgentRuntime, MapField<string, CloudEventAttributeValue>)

public static (string?, string?) GetTraceIdAndState(GrpcAgentRuntime worker, MapField<string, CloudEvent.Types.CloudEventAttributeValue> metadata)

Parameters

worker GrpcAgentRuntime
metadata MapField<string, CloudEvent.Types.CloudEventAttributeValue>

Returns

(string Type, string Key)

GetTraceIdAndState(GrpcAgentRuntime, IDictionary<string, string>)

public static (string?, string?) GetTraceIdAndState(GrpcAgentRuntime runtime, IDictionary<string, string> metadata)

Parameters

runtime GrpcAgentRuntime
metadata IDictionary<string, string>

Returns

(string Type, string Key)

Update(GrpcAgentRuntime, CloudEvent, Activity?)

public static void Update(GrpcAgentRuntime worker, CloudEvent cloudEvent, Activity? activity = null)

Parameters

worker GrpcAgentRuntime
cloudEvent CloudEvent
activity Activity

Update(GrpcAgentRuntime, RpcRequest, Activity?)

public static void Update(GrpcAgentRuntime worker, RpcRequest request, Activity? activity = null)

Parameters

worker GrpcAgentRuntime
request RpcRequest
activity Activity