Example #1
0
 public SolutionServices(Workspace workspace)
 {
     this.Workspace = workspace;
     this.TemporaryStorage = workspace.Services.GetService<ITemporaryStorageService>();
     this.TextFactory = workspace.Services.GetService<ITextFactoryService>();
     this.TextCache = workspace.Services.GetService<ITextCacheService>();
     this.CompilationCacheService = workspace.Services.GetService<ICompilationCacheService>();
     this.MetadataReferenceProviderService = workspace.Services.GetService<IMetadataReferenceProviderService>();
 }
Example #2
0
 public SolutionServices(Workspace workspace)
 {
     this.Workspace                        = workspace;
     this.TemporaryStorage                 = workspace.Services.GetService <ITemporaryStorageService>();
     this.TextFactory                      = workspace.Services.GetService <ITextFactoryService>();
     this.TextCache                        = workspace.Services.GetService <ITextCacheService>();
     this.CompilationCacheService          = workspace.Services.GetService <ICompilationCacheService>();
     this.MetadataReferenceProviderService = workspace.Services.GetService <IMetadataReferenceProviderService>();
 }
Example #3
0
 public SolutionServices(Workspace workspace, IWorkspaceServiceProvider workspaceServices)
 {
     this.Workspace = workspace;
     this.WorkspaceServices = workspaceServices;
     this.LanguageServicesFactory = WorkspaceServices.GetService<ILanguageServiceProviderFactory>();
     this.TemporaryStorage = WorkspaceServices.GetService<ITemporaryStorageService>();
     this.TextFactory = WorkspaceServices.GetService<ITextFactoryService>();
     this.TextCache = WorkspaceServices.GetService<ITextCacheService>();
     this.CompilationCacheService = WorkspaceServices.GetService<ICompilationCacheService>();
     this.MetadataReferenceProvider = WorkspaceServices.GetService<IMetadataReferenceProviderService>().GetProvider();
 }
Example #4
0
 public SolutionServices(Workspace workspace, IWorkspaceServiceProvider workspaceServices)
 {
     this.Workspace                 = workspace;
     this.WorkspaceServices         = workspaceServices;
     this.LanguageServicesFactory   = WorkspaceServices.GetService <ILanguageServiceProviderFactory>();
     this.TemporaryStorage          = WorkspaceServices.GetService <ITemporaryStorageService>();
     this.TextFactory               = WorkspaceServices.GetService <ITextFactoryService>();
     this.TextCache                 = WorkspaceServices.GetService <ITextCacheService>();
     this.CompilationCacheService   = WorkspaceServices.GetService <ICompilationCacheService>();
     this.MetadataReferenceProvider = WorkspaceServices.GetService <IMetadataReferenceProviderService>().GetProvider();
 }