private void CreateCollectorAgents(Configuration configuration) { var resourcelist = new ResourceList(); resourcelist.AddRange(collection: _dBContext.Resources.Select(selector: x => "Resources(" + x.Name.Replace(" ", "") + ")")); StorageCollector = _simulation.ActorSystem.ActorOf(props: Collector.Props(actorPaths: ActorPaths, collectorBehaviour: CollectorAnalyticsStorage.Get() , msgHub: _messageHub, configuration: configuration, time: 0, debug: _debugAgents , streamTypes: CollectorAnalyticsStorage.GetStreamTypes()), name: "StorageCollector"); ContractCollector = _simulation.ActorSystem.ActorOf(props: Collector.Props(actorPaths: ActorPaths, collectorBehaviour: CollectorAnalyticsContracts.Get() , msgHub: _messageHub, configuration: configuration, time: 0, debug: _debugAgents , streamTypes: CollectorAnalyticsContracts.GetStreamTypes()), name: "ContractCollector"); WorkCollector = _simulation.ActorSystem.ActorOf(props: Collector.Props(actorPaths: ActorPaths, collectorBehaviour: CollectorAnalyticsWorkSchedule.Get(resources: resourcelist) , msgHub: _messageHub, configuration: configuration, time: 0, debug: _debugAgents , streamTypes: CollectorAnalyticsWorkSchedule.GetStreamTypes()), name: "WorkScheduleCollector"); }