public static void RegisterBoundedByCpuCount <T>( this IRpcModuleProvider rpcModuleProvider, ModuleFactoryBase <T> factory, int timeout) where T : IRpcModule { RegisterBounded(rpcModuleProvider, factory, _cpuCount, timeout); }
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)); }