示例#1
0
 private static async Task <TInterface> CreateProxy <TInterface, TInterceptor>(ITuple paramz) where TInterceptor : InterfaceInterceptor <TInterface> where TInterface : class =>
 await ProxyGenerator <TInterface, TInterceptor> .ActivateAsync(paramz);
示例#2
0
 private static async Task <TInterface> CreateProxy <TInterface, TInterceptor>(params object[] paramz) where TInterceptor : InterfaceInterceptor <TInterface> where TInterface : class =>
 (TInterface)Activator.CreateInstance(await ProxyGenerator <TInterface, TInterceptor> .GetGeneratedTypeAsync(), paramz);