AppMetrics.AccessKeys.IsAllowed C# (CSharp) Method

IsAllowed() static private method

static private IsAllowed ( string key ) : bool
key string
return bool
        static bool IsAllowed(string key)
        {
            lock (Sync)
            {
                if (_keys == null)
                {
                    _keys = AppSettings.Instance.AccessKeys;
                }
                var keyIsPresent = _keys.Contains(key);
                return keyIsPresent;
            }
        }