FiftyOne.Foundation.Mobile.Detection.Provider.MatchNoCache C# (CSharp) 메소드

MatchNoCache() 개인적인 메소드

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