Interface IActivitySourceFactory
- Namespace
- Arc4u.Diagnostics
- Assembly
- Arc4u.Diagnostics.dll
Interface defining the method to obtain a singleton instance of a ActivitySource to add Telemetry in a .net core project.
public interface IActivitySourceFactory
Methods
Get(string, string?)
Get or create a Singleton instance of an ActivitySource.
ActivitySource Get(string name, string? version = null)
Parameters
namestringThe name of the ActivitySource.
versionstringAn optinal parameter to add a version to an ActivitySource.
Returns
- ActivitySource
A specific instance of an ActivitySource.