Exemple #1
0
        public string GetScope()
        {
            List <string> scopes = new List <string>();

            scopes.AddRange(AdditionalScopes.Split(new char[] { ',' }).ToList <string>());

            if (ScopeLevel == SCOPE_LEVEL.DEFAULT)
            {
                scopes.AddRange(DefaultScope.Split(new char[] { ',' }).ToList <string>());
            }

            string strScopes = String.Join(ScopeDelimeter, scopes.ToArray());

            if (strScopes.EndsWith(ScopeDelimeter))
            {
                strScopes = strScopes.Substring(0, strScopes.Length - 1);
            }
            if (strScopes.StartsWith(ScopeDelimeter))
            {
                strScopes = strScopes.Substring(ScopeDelimeter.Length);
            }
            return(strScopes);
        }