<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="9.0.0-preview.7.24405.7" />

DsesSampleActivityFunc

public DsesSampleActivityFunc(object object, IntPtr method)

public virtual IAsyncResult BeginInvoke(bool hasActivityContext, ref ActivityCreationOptions options, AsyncCallback callback, object object)

public virtual ActivitySamplingResult Invoke(bool hasActivityContext, ref ActivityCreationOptions options)