public RazorDefinitionEndpoint( ForegroundDispatcher foregroundDispatcher, DocumentResolver documentResolver, RazorComponentSearchEngine componentSearchEngine) { _foregroundDispatcher = foregroundDispatcher ?? throw new ArgumentNullException(nameof(foregroundDispatcher)); _documentResolver = documentResolver ?? throw new ArgumentNullException(nameof(documentResolver)); _componentSearchEngine = componentSearchEngine ?? throw new ArgumentNullException(nameof(componentSearchEngine)); }
public RazorComponentRenameEndpoint( ForegroundDispatcher foregroundDispatcher, DocumentResolver documentResolver, RazorComponentSearchEngine componentSearchEngine, ProjectSnapshotManagerAccessor projectSnapshotManagerAccessor) { _foregroundDispatcher = foregroundDispatcher ?? throw new ArgumentNullException(nameof(foregroundDispatcher)); _documentResolver = documentResolver ?? throw new ArgumentNullException(nameof(documentResolver)); _componentSearchEngine = componentSearchEngine ?? throw new ArgumentNullException(nameof(componentSearchEngine)); _projectSnapshotManager = projectSnapshotManagerAccessor?.Instance ?? throw new ArgumentNullException(nameof(projectSnapshotManagerAccessor)); }
public RazorComponentRenameEndpoint( ProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher, DocumentResolver documentResolver, RazorComponentSearchEngine componentSearchEngine, ProjectSnapshotManagerAccessor projectSnapshotManagerAccessor, LanguageServerFeatureOptions languageServerFeatureOptions) { _projectSnapshotManagerDispatcher = projectSnapshotManagerDispatcher ?? throw new ArgumentNullException(nameof(projectSnapshotManagerDispatcher)); _documentResolver = documentResolver ?? throw new ArgumentNullException(nameof(documentResolver)); _componentSearchEngine = componentSearchEngine ?? throw new ArgumentNullException(nameof(componentSearchEngine)); _projectSnapshotManager = projectSnapshotManagerAccessor?.Instance ?? throw new ArgumentNullException(nameof(projectSnapshotManagerAccessor)); _languageServerFeatureOptions = languageServerFeatureOptions ?? throw new ArgumentNullException(nameof(languageServerFeatureOptions)); }
public RazorDefinitionEndpoint( ProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher, DocumentResolver documentResolver, RazorComponentSearchEngine componentSearchEngine, ILoggerFactory loggerFactory) { if (loggerFactory is null) { throw new ArgumentNullException(nameof(loggerFactory)); } _projectSnapshotManagerDispatcher = projectSnapshotManagerDispatcher ?? throw new ArgumentNullException(nameof(projectSnapshotManagerDispatcher)); _documentResolver = documentResolver ?? throw new ArgumentNullException(nameof(documentResolver)); _componentSearchEngine = componentSearchEngine ?? throw new ArgumentNullException(nameof(componentSearchEngine)); _logger = loggerFactory.CreateLogger <RazorDefinitionEndpoint>(); }
public TextDocumentUriPresentationEndpoint( ProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher, DocumentResolver documentResolver, RazorDocumentMappingService razorDocumentMappingService, RazorComponentSearchEngine razorComponentSearchEngine, ClientNotifierServiceBase languageServer, DocumentVersionCache documentVersionCache, LanguageServerFeatureOptions languageServerFeatureOptions, ILoggerFactory loggerFactory) : base(projectSnapshotManagerDispatcher, documentResolver, razorDocumentMappingService, languageServer, documentVersionCache, languageServerFeatureOptions, loggerFactory.CreateLogger <TextDocumentUriPresentationEndpoint>()) { if (razorComponentSearchEngine is null) { throw new ArgumentNullException(nameof(razorComponentSearchEngine)); } _razorComponentSearchEngine = razorComponentSearchEngine; }