public static ICachingOrgService GetCachingPoolingService(ServiceParams serviceParams) { serviceParams.Require(nameof(serviceParams)); if (AutoSetMaxPerformanceParams) { serviceParams.AutoSetMaxPerformanceParams(); } var pool = new DefaultServicePool(serviceParams); var factory = new EnhancedServiceFactory <ICachingOrgService, CachingOrgService>(serviceParams); return(factory.CreateService(pool)); }
public static IEnhancedOrgService GetPoolingService(ServiceParams serviceParams) { serviceParams.Require(nameof(serviceParams)); if (AutoSetMaxPerformanceParams) { serviceParams.AutoSetMaxPerformanceParams(); } var pool = new DefaultServicePool(serviceParams); var factory = new DefaultEnhancedFactory(serviceParams); return(factory.CreateService(pool)); }