AppMetrics.AccessKeys.IsAllowed C# (CSharp) 메소드

IsAllowed() 정적인 개인적인 메소드

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