Beispiel #1
0
        public TemporaryWorkspace(HostServices hostServices, string?workspaceKind, SolutionInfo solutionInfo, SerializableOptionSet options)
            : base(hostServices, workspaceKind)
        {
            var documentOptionsProviderFactories = ((IMefHostExportProvider)Services.HostServices).GetExports <IDocumentOptionsProviderFactory, OrderableMetadata>();

            RegisterDocumentOptionProviders(documentOptionsProviderFactories);

            OnSolutionAdded(solutionInfo);
            SetCurrentSolution(CurrentSolution.WithOptions(options));
        }