internal void MatchNoCache(string targetUserAgent, MatchState state)
{
long startTickCount = 0;
state.Reset(targetUserAgent);
if (RecordDetectionTime)
{
startTickCount = DateTime.UtcNow.Ticks;
}
Controller.Match(state);
if (RecordDetectionTime)
{
state.Elapsed = DateTime.UtcNow.Ticks - startTickCount;
}
// Update the counts for the provider.
Interlocked.Increment(ref _detectionCount);
lock (MethodCounts)
{
MethodCounts[state.Method]++;
}
}