Exemple #1
0
        protected AvailableGroups GetAllGroupIds()
        {
            Dictionary <string, long[]> matchToGroupId = GetMatchToGroupId();

            AvailableGroups result = new AvailableGroups();


            // Yuck!
            if (matchToGroupId.TryGetValue(WampMatchPattern.Exact, out long[] groups))
Exemple #2
0
        protected AvailableGroups GetAllGroupIds()
        {
            Dictionary <string, long[]> matchToGroupId = GetMatchToGroupId();

            AvailableGroups result = new AvailableGroups();

            long[] groups;

            // Yuck!
            if (matchToGroupId.TryGetValue(WampMatchPattern.Exact, out groups))
            {
                result.Exact = groups;
            }
            if (matchToGroupId.TryGetValue(WampMatchPattern.Prefix, out groups))
            {
                result.Prefix = groups;
            }
            if (matchToGroupId.TryGetValue(WampMatchPattern.Wildcard, out groups))
            {
                result.Wildcard = groups;
            }

            return(result);
        }