Exemple #1
0
        public static void dispatchToken(Token token)
        {
            ApiPlace api_place = null;

            if (api_places_mapping.TryGetValue(token.apiCallName, out api_place))
            {
                api_place.putToken(token);
            }
            else
            {
                throw new Exception("Can not find API place_for the API call arrived:\n " + token.toString("----"));
            }
        }
Exemple #2
0
 public static void registerApiPlace(ApiPlace api_place)
 {
     api_places_mapping.Add(api_place.api_call_name, api_place);
 }