Пример #1
0
 public PointController(IPointService service, IEdgeService edgeService, IMainAlgoritmService algoritmService, IMapper mapper)
 {
     this.pointService    = service;
     this.edgeService     = edgeService;
     this.algoritmService = algoritmService;
     this.mapper          = mapper;
 }
Пример #2
0
        public override async Task <IClientContext> Build()
        {
            var newHeader = string.Join(",",
                                        _attributes.Select((e) => e.Key + "=" +
                                                           HttpUtility.UrlEncode(string.Join(",", e.Value))).OrderBy(u => u));

            if (!newHeader.Equals(_xHeader))
            {
                _xHeader = newHeader;
                _repository.NotReady();

                if (_currentEdgeService != null && _currentEdgeService.IsRequiresReplacementOnHeaderChange)
                {
                    _currentEdgeService.Close();
                    _currentEdgeService = null;
                }
            }

            if (_currentEdgeService == null)
            {
                _currentEdgeService = _edgeServiceSource(_repository, _config);
            }

            await _currentEdgeService.ContextChange(_xHeader);

            return(this);
        }
Пример #3
0
 public GraphService(
     INodeService <TNodeData, TNodeId> nodeService,
     IEdgeService <TEdgeData, TEdgeId, TNodeId> edgeService
     )
 {
     _nodeService = nodeService;
     _edgeService = edgeService;
 }
Пример #4
0
 public Cube3DService(IGenericRepository <Cube3D> cube3DRepository,
                      IPoint3DService point3DService,
                      IEdgeService edgeService,
                      IAppLogger <Cube3DService> logger)
 {
     _cube3DRepository = cube3DRepository ?? throw new ArgumentNullException(nameof(cube3DRepository));
     _point3DService   = point3DService ?? throw new ArgumentNullException(nameof(point3DService));
     _edgeService      = edgeService ?? throw new ArgumentNullException(nameof(edgeService));
     _logger           = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Пример #5
0
 public JobDependencyLocator(
     IEdgeService edgeService,
     ISchedulerService schedulerService,
     IPublisherApiService publisherApiService,
     Module module,
     CancellationTokenSource cancellationTokenSource)
 {
     EdgeService         = edgeService;
     SchedulerService    = schedulerService;
     PublisherApiService = publisherApiService;
     Module = module;
     CancellationTokenSource = cancellationTokenSource;
 }
Пример #6
0
 public ClientEvalFeatureContext(IFeatureRepositoryContext repository, IFeatureHubConfig config,
                                 EdgeServiceSource edgeServiceSource) : base(repository, config)
 {
     _edgeService      = edgeServiceSource(repository, config);
     _weCreatedSources = false;
 }
Пример #7
0
 public EdgesController(IEdgeService <Transaction, string, string> edgeService)
 {
     _edgeService = edgeService;
 }
Пример #8
0
 public EdgeController(IEdgeService eService)
 {
     this.eService = eService;
 }
 public SchedulerService(IEdgeService edgeService)
 {
     _edgeService = edgeService;
 }
Пример #10
0
 public GraphService(IEdgeService edgeService)
 {
     EdgeService = edgeService;
 }