예제 #1
0
 // Internal for testing
 internal DefaultTagHelperCompletionService(TagHelperFactsServiceInternal tagHelperFactsService)
 {
     _tagHelperFactsService = tagHelperFactsService;
 }
예제 #2
0
        public DefaultTagHelperCompletionService(VisualStudioWorkspaceAccessor workspaceAccessor)
        {
            var razorLanguageServices = workspaceAccessor.Workspace.Services.GetLanguageServices(RazorLanguage.Name);

            _tagHelperFactsService = razorLanguageServices.GetRequiredService <TagHelperFactsServiceInternal>();
        }