FiftyOne.Foundation.Mobile.Detection.Provider.MatchNoCache C# (CSharp) Method

MatchNoCache() private method

Matches the User-Agent setting the state without using a cache.
private MatchNoCache ( string targetUserAgent, MatchState state ) : void
targetUserAgent string
state MatchState
return void
        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]++;
            }
        }