示例#1
0
 /// <summary>
 /// This constructor creates ApiPlace which will receive
 /// intercepted API calls.
 /// </summary>
 /// <param name="name_of_api_call">Name of API call this place takes care of</param>
 public ApiPlace(APIFullName name_of_api_call)
     : base(name_of_api_call + "_API")
 {
     _api_call_name = name_of_api_call;
     ApiDispatcher.registerApiPlace(this);
 }
示例#2
0
 /// <summary>
 /// Returns names of API calls as they registered in API dispatcher by
 /// API places.
 /// </summary>
 /// <returns></returns>
 public static APIFullName[] getListOfApiCalls()
 {
     APIFullName[] result = new APIFullName[api_places_mapping.Keys.Count];
     api_places_mapping.Keys.CopyTo(result, 0);
     return(result);
 }