Ejemplo n.º 1
0
 public static void RegisterBoundedByCpuCount <T>(
     this IRpcModuleProvider rpcModuleProvider,
     ModuleFactoryBase <T> factory,
     int timeout)
     where T : IRpcModule
 {
     RegisterBounded(rpcModuleProvider, factory, _cpuCount, timeout);
 }
Ejemplo n.º 2
0
 public static void RegisterBounded <T>(
     this IRpcModuleProvider rpcModuleProvider,
     ModuleFactoryBase <T> factory,
     int maxCount,
     int timeout)
     where T : IRpcModule
 {
     rpcModuleProvider.Register(new BoundedModulePool <T>(factory, maxCount, timeout));
 }