Пример #1
0
        public OOPTagHelperResolver(Workspace workspace)
        {
            if (workspace == null)
            {
                throw new ArgumentNullException(nameof(workspace));
            }

            _workspace       = workspace;
            _defaultResolver = new DefaultTagHelperResolver();
        }
Пример #2
0
        public OOPTagHelperResolver(ProjectSnapshotProjectEngineFactory factory, ErrorReporter errorReporter, Workspace workspace)
        {
            if (factory == null)
            {
                throw new ArgumentNullException(nameof(factory));
            }

            if (errorReporter == null)
            {
                throw new ArgumentNullException(nameof(errorReporter));
            }

            if (workspace == null)
            {
                throw new ArgumentNullException(nameof(workspace));
            }

            _factory       = factory;
            _errorReporter = errorReporter;
            _workspace     = workspace;

            _defaultResolver = new DefaultTagHelperResolver();
        }
Пример #3
0
        public OOPTagHelperResolver(RazorProjectEngineFactoryService engineFactory, ErrorReporter errorReporter, Workspace workspace)
        {
            if (engineFactory == null)
            {
                throw new ArgumentNullException(nameof(engineFactory));
            }

            if (errorReporter == null)
            {
                throw new ArgumentNullException(nameof(errorReporter));
            }

            if (workspace == null)
            {
                throw new ArgumentNullException(nameof(workspace));
            }

            _engineFactory = engineFactory;
            _errorReporter = errorReporter;
            _workspace     = workspace;

            _defaultResolver = new DefaultTagHelperResolver(_engineFactory);
        }