Example #1
0
 public DefaultRazorComponentSearchEngine(
     ForegroundDispatcher foregroundDispatcher,
     ProjectSnapshotManagerAccessor projectSnapshotManagerAccessor)
 {
     _foregroundDispatcher   = foregroundDispatcher ?? throw new ArgumentNullException(nameof(foregroundDispatcher));
     _projectSnapshotManager = projectSnapshotManagerAccessor?.Instance ?? throw new ArgumentNullException(nameof(projectSnapshotManagerAccessor));
 }
Example #2
0
        public DefaultRazorComponentSearchEngine(
            ProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher,
            ProjectSnapshotManagerAccessor projectSnapshotManagerAccessor,
            ILoggerFactory loggerFactory)
        {
            if (loggerFactory is null)
            {
                throw new ArgumentNullException(nameof(loggerFactory));
            }

            _projectSnapshotManagerDispatcher = projectSnapshotManagerDispatcher ?? throw new ArgumentNullException(nameof(projectSnapshotManagerDispatcher));
            _projectSnapshotManager           = projectSnapshotManagerAccessor?.Instance ?? throw new ArgumentNullException(nameof(projectSnapshotManagerAccessor));
            _logger = loggerFactory.CreateLogger <DefaultRazorComponentSearchEngine>();
        }