C# Class EFUtility.CodeGenerationTools.DynamicHost

Reponsible for implementing the IDynamicHost as a dynamic shape wrapper over the Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost interface rather than type dependent wrapper. We don't use the interface type so that the code can be run in preprocessed mode on a .net framework only installed machine.
Inheritance: IDynamicHost
Mostra file Open project: jradxl/Entity-Framework-Code-Generation-Tools-Experiments

Public Methods

Method Description
AsIServiceProvider ( ) : IServiceProvider

Returns the Host instance cast as an IServiceProvider

DynamicHost ( object instance ) : System

Creates an instance of the DynamicHost class around the passed in Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost shapped instance passed in.

ResolveParameterValue ( string id, string name, string otherName ) : string

A call to Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost ResolveParameterValue

ResolvePath ( string path ) : string

A call to Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost ResolvePath

Method Details

AsIServiceProvider() public method

Returns the Host instance cast as an IServiceProvider
public AsIServiceProvider ( ) : IServiceProvider
return IServiceProvider

DynamicHost() public method

Creates an instance of the DynamicHost class around the passed in Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost shapped instance passed in.
public DynamicHost ( object instance ) : System
instance object
return System

ResolveParameterValue() public method

A call to Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost ResolveParameterValue
public ResolveParameterValue ( string id, string name, string otherName ) : string
id string
name string
otherName string
return string

ResolvePath() public method

A call to Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost ResolvePath
public ResolvePath ( string path ) : string
path string
return string