Esempio n. 1
0
 private static object Dispatch(object target, string cacheKeyName, Type[] cacheKeyTypes, object[] args, DispatcherCache.DispatcherFactory factory)
 {
     Type targetType = (target as Type) ?? target.GetType();
     DispatcherKey key = new DispatcherKey(targetType, cacheKeyName, cacheKeyTypes);
     Dispatcher dispatcher = _cache.Get(key, factory);
     return dispatcher(target, args);
 }
Esempio n. 2
0
 private static object Dispatch(object target, string cacheKeyName, object[] args, DispatcherCache.DispatcherFactory factory)
 {
     Type[] cacheKeyTypes = MethodResolver.GetArgumentTypes(args);
     return Dispatch(target, cacheKeyName, cacheKeyTypes, args, factory);
 }