<PackageReference Include="Microsoft.ApplicationInsights" Version="2.23.0" />
Microsoft.ApplicationInsights.Common.InterlockedThrottle
This class will hold a timestamp and will perform a given action only if the current time has exceeded an interval.
namespace Microsoft.
ApplicationInsights.
Common
{
internal class InterlockedThrottle
{
public InterlockedThrottle(
TimeSpan interval);
public void PerformThrottledAction(
Action action);
}
}