Esempio n. 1
0
 public static void RegisterTypeRoute <T>(this IRpcRouteProvider routeProvider, string name = null)
 {
     routeProvider.RegisterRoute(new List <RouteCriteria> {
         new RouteCriteria(typeof(T))
     }, name);
 }
Esempio n. 2
0
 public static void RegisterRoute(this IRpcRouteProvider routeProvider, RouteCriteria criteria, string name = null)
 {
     routeProvider.RegisterRoute(new List <RouteCriteria> {
         criteria
     }, name);
 }