C# Class UmbCodeGen.CodeGen.NullHost

Reponsible for implementing the IDynamicHost when the Host property is not available on the TextTemplating type. The Host property only exists when the hostspecific attribute of the template directive is set to true.
Inheritance: IDynamicHost
显示文件 Open project: pdebacker/UmbCodeGen

Public Methods

Method Description
AsIServiceProvider ( ) : IServiceProvider

Returns null.

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

An abstraction of the call to Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost ResolveParameterValue that simply retuns null.

ResolvePath ( string path ) : string

An abstraction of the call to Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost ResolvePath that simply retuns the path passed in.

Method Details

AsIServiceProvider() public method

Returns null.
public AsIServiceProvider ( ) : IServiceProvider
return IServiceProvider

ResolveParameterValue() public method

An abstraction of the call to Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost ResolveParameterValue that simply retuns null.
public ResolveParameterValue ( string id, string name, string otherName ) : string
id string
name string
otherName string
return string

ResolvePath() public method

An abstraction of the call to Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost ResolvePath that simply retuns the path passed in.
public ResolvePath ( string path ) : string
path string
return string