VsTextTemplatingModelingAdapterManager Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
ModelBusAdapterManager that can handle creation and management of Adapters representing DSL based Model files inside Visual Studio's T4 VSHost AppDomain.
It provides with ModelBusAdapter life-cycle management. It does not provide any capability to save models back to disk.
public abstract class VsTextTemplatingModelingAdapterManager : Microsoft.VisualStudio.Modeling.Integration.Shell.VsModelingAdapterManager
type VsTextTemplatingModelingAdapterManager = class
inherit VsModelingAdapterManager
Public MustInherit Class VsTextTemplatingModelingAdapterManager
Inherits VsModelingAdapterManager
- Inheritance
-
Microsoft.VisualStudio.Modeling.Integration.Shell.VsModelingAdapterManagerVsTextTemplatingModelingAdapterManager
Constructors
VsTextTemplatingModelingAdapterManager() |
Fields
HostName |
Name the T4 Host in Visual Studio uses to identify itself as a ModelBus host. |
Methods
ClearState() |
Clear the store state we hold for all adapters. |
CreateDocumentHandler(ModelingAdapterReference, IServiceProvider) |
Creates and returns a ModelingDocumentHandler given a ModelingAdapterReference |
CreateLoadStore(Store, ModelingAdapterReference, IServiceProvider) |
Load a Store with the model for the given adapter reference. If the given Store is null then create the Store as well. |
CreateSerializerLocator() |
Override point to allow derived classes to supply the SerializerLocator of their choice |
DoCreateAdapter(ModelBusReference, IServiceProvider) |
Using the ModelBusReference passed as a parameter, creation of a ModelBusAdapter instance is attempted. If successful, the adapter is returned. If not, appropriate exception is thrown. |
FindStoreRoot(Store, ModelingAdapterReference, IServiceProvider) |
Given a cached store, find the model root withing it for the given adapter reference |
GetAdapterReferenceStoreKey(ModelingAdapterReference) |
Given an AdapterReference, provide a key that uniquely represents the Store that should be used for loading/dereferencing it. The base implementation uses the absolute path of the modelfile represented by the reference for the simple built in DSL structure. Another exmaple might be a designer that loads many model files in a project into various Partitions in the same Store in which case a string that represents the project might be returned. |
GetView(ModelBusAdapter, ModelBusReference) |
Obtains the View associated with the ModelBusAdapter passed as a parameter. |