public LinkService(HttpClient httpClient, ILoggerFactory loggerFactory)
        {
            httpClient.VerifyNotNull(nameof(httpClient));
            loggerFactory.VerifyNotNull(nameof(loggerFactory));

            _pathFinderClient = new PathFinderClient(httpClient, loggerFactory.CreateLogger <PathFinderClient>());
        }
Exemple #2
0
        public PathFinderViewModel(IPresentationCreationService presentationCreationService, IDocumentLoader documentLoader, PathFinderClient client)
        {
            myPresentationCreationService = presentationCreationService;
            myDocumentLoader = documentLoader;
            myClient         = client;

            CreateGraphCommand    = new DelegateCommand(CreateGraph, () => ConfigFile != null && IsReady);
            CancelCommand         = new DelegateCommand(OnCancel, () => !IsReady);
            OpenConfigFileCommand = new DelegateCommand(OnOpenConfigFile, () => IsReady);
            ClosedCommand         = new DelegateCommand(OnClosed);

            OpenFileRequest = new InteractionRequest <OpenFileDialogNotification>();

            IsReady = true;
            AssemblyReferencesOnly = false;
        }