public DistributorBusService(IList <DistributorConnector> connectors) { _connectors = connectors; _subscriptions = new List <ISubscriptionReference>(); _workerAvailabilityCache = new ConcurrentCache <Type, IWorkerAvailability>(); _workerCache = new DistributorWorkerCache(); }
public TopBarTitleViewComponent(ISettingManager settingManager, UserManager userManager, IAbpSession abpSession, IWorkerCache workerCache, IDepotCache depotCache) { _settingManager = settingManager; _userManager = userManager; _abpSession = abpSession; _workerCache = workerCache; _depotCache = depotCache; }
/// <summary> /// Disposes of the object. /// </summary> /// <param name="cache">The cache instance to dispose.</param> public static void DisposeIfNecessary(this IWorkerCache cache) { if (cache == null) { throw new ArgumentNullException(nameof(cache)); } (cache as IDisposable)?.Dispose(); }
public WorkerController(IWorkerService workerService, IPersonService personService, IImageService imageServ, IWorkerCache wc) { this.wcache = wc; this.serv = workerService; this.imageServ = imageServ; }
public TaskManager(IWorkerCache workerCache, IPlaceCache placeCache, IObjectCache objectCache, ICategoryCache categoryCache, IShelfCache shelfCache, ICargoTypeCache cargoTypeCache, ISourceCache sourceCache) { _workerCache = workerCache; _placeCache = placeCache; _objectCache = objectCache; _categoryCache = categoryCache; _shelfCache = shelfCache; _cargoTypeCache = cargoTypeCache; _sourceCache = sourceCache; }
public UserAppService( IRepository <User, long> repository, UserManager userManager, RoleManager roleManager, IRepository <Role> roleRepository, IPasswordHasher <User> passwordHasher, IWorkerCache workerCache, IPostCache postCache) : base(repository) { _userManager = userManager; _roleManager = roleManager; _roleRepository = roleRepository; _passwordHasher = passwordHasher; _workerCache = workerCache; _postCache = postCache; }
public WorkManager(IWorkerCache workerCache, IVehicleCache vehicleCache, IWorkplaceCache workplaceCache, IWorkRoleCache workRoleCache, IDepotCache depotCache, IArticleCache articleCache, IPostCache postCache, IBoxCache boxCache, IOutletCache outletCache, ISigninCache signinCache, IRepository <Signin> signinRepository, IAffairCache affairCache, IRepository <Affair> affairRepository, IRepository <AffairWorker> affairWorkerRepository, IRepository <AffairTask> affairTaskRepository, IRepository <AffairEvent> affairEventRepository, IRepository <AskDoorRecord> askdoorRepository) { _workerCache = workerCache; _vehicleCache = vehicleCache; _workplaceCache = workplaceCache; _workRoleCache = workRoleCache; _depotCache = depotCache; _articleCache = articleCache; _postCache = postCache; _boxCache = boxCache; _outletCache = outletCache; _signinCache = signinCache; _signinRepository = signinRepository; _affairCache = affairCache; _affairRepository = affairRepository; _affairWorkerRepository = affairWorkerRepository; _affairTaskRepository = affairTaskRepository; _affairEventRepository = affairEventRepository; _askdoorRepository = askdoorRepository; }
public FieldAppService(IDepotCache depotCache, IWorkplaceCache workplaceCache, IWorkerCache workerCache, IVehicleCache vehicleCache, IPostCache postCache, IWorkRoleCache workRoleCache, IGasStationCache gasStationCache, IRepository <Worker> workerRepository, IRepository <WorkerFile> workerFileRepository, IRepository <Asset> assetRepository) { _depotCache = depotCache; _workplaceCache = workplaceCache; _workerCache = workerCache; _vehicleCache = vehicleCache; _postCache = postCache; _workRoleCache = workRoleCache; _gasStationCache = gasStationCache; _workerRepository = workerRepository; _workerFileRepository = workerFileRepository; _assetRepository = assetRepository; }
/// <summary> /// Initializes a new instance of the <see cref="PooledWorker"/> class. /// </summary> /// <param name="cache">The cache which sourced the worker.</param> /// <param name="worker"></param> public PooledWorker(IWorkerCache cache, IRuntimeWorker worker) { this.cache = cache ?? throw new ArgumentNullException(nameof(cache)); this.worker = worker ?? throw new ArgumentNullException(nameof(worker)); }
public MessageWorkerAvailability(IWorkerCache workerCache) { _workerCache = workerCache; }
public TestableWorkerPool(IWorkerCache cache, IWorkerCacheMonitor cacheMonitor) : base(cache, cacheMonitor) { }
/// <summary> /// Initializes a new instance of the <see cref="WorkerPool"/> class. /// </summary> /// <param name="cache">The cache of workers available for the pool.</param> /// <param name="cacheMonitor">The monitor which will track the cache.</param> internal WorkerPool(IWorkerCache cache, IWorkerCacheMonitor cacheMonitor) { this.cache = cache ?? throw new ArgumentNullException(nameof(cache)); this.cacheMonitor = cacheMonitor ?? throw new ArgumentNullException(nameof(cacheMonitor)); }