Dela via


ILogger.ExecuteAsync Method

Definition

For internal use only.

public System.Threading.Tasks.Task ExecuteAsync (string activityName, Func<System.Threading.Tasks.Task> action, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> additionalCustomProperties = default);
abstract member ExecuteAsync : string * Func<System.Threading.Tasks.Task> * seq<System.Collections.Generic.KeyValuePair<string, string>> -> System.Threading.Tasks.Task
Public Function ExecuteAsync (activityName As String, action As Func(Of Task), Optional additionalCustomProperties As IEnumerable(Of KeyValuePair(Of String, String)) = Nothing) As Task

Parameters

activityName
String

Name of the activity that gets logged in telemetry.

action
Func<Task>

Action to be performed.

additionalCustomProperties
IEnumerable<KeyValuePair<String,String>>

Additional properties to be logged.

Returns

Applies to