C# 클래스 RazorGenerator.Core.HostManager

상속: IDisposable
파일 보기 프로젝트 열기: mvlasenko/TridionVSRazorExtension 1 사용 예제들

공개 메소드들

메소드 설명
CreateHost ( string fullPath, string projectRelativePath, CodeDomProvider codeDomProvider, string vsNamespace ) : IRazorHost
CreateHost ( string fullPath, string projectRelativePath, string vsNamespace ) : IRazorHost
Dispose ( ) : void
HostManager ( string baseDirectory ) : System
HostManager ( string baseDirectory, bool loadExtensions, RazorRuntime defaultRuntime, string assemblyDirectory ) : System

비공개 메소드들

메소드 설명
AddCatalogIfHostsDirectoryExists ( System.ComponentModel.Composition.Hosting.AggregateCatalog catalog, string directory ) : void
GetAssembly ( RazorRuntime runtime ) : Assembly
GetAssesmblyDirectory ( ) : string Attempts to locate where the RazorGenerator.Core assembly is being loaded from. This allows us to locate the v1 and v2 assemblies and the corresponding System.Web.* binaries Assembly.CodeBase points to the original location when the file is shadow copied, so we'll attempt to use that first.
GetAvailableHosts ( System.ComponentModel.Composition.Hosting.CompositionContainer container ) : IEnumerable
GetRazorCodeTransformer ( System.ComponentModel.Composition.Hosting.CompositionContainer container, string projectRelativePath, string hostName ) : IRazorCodeTransformer
GuessHost ( string projectRoot, string projectRelativePath, RazorRuntime &runtime ) : string
InitCompositionCatalog ( string baseDirectory, bool loadExtensions, RazorRuntime runtime ) : ComposablePartCatalog
IsMvcProject ( string projectRoot, RazorRuntime &razorRuntime ) : bool?
OnAssemblyResolve ( object sender, ResolveEventArgs eventArgs ) : Assembly

메소드 상세

CreateHost() 공개 메소드

public CreateHost ( string fullPath, string projectRelativePath, CodeDomProvider codeDomProvider, string vsNamespace ) : IRazorHost
fullPath string
projectRelativePath string
codeDomProvider CodeDomProvider
vsNamespace string
리턴 IRazorHost

CreateHost() 공개 메소드

public CreateHost ( string fullPath, string projectRelativePath, string vsNamespace ) : IRazorHost
fullPath string
projectRelativePath string
vsNamespace string
리턴 IRazorHost

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

HostManager() 공개 메소드

public HostManager ( string baseDirectory ) : System
baseDirectory string
리턴 System

HostManager() 공개 메소드

public HostManager ( string baseDirectory, bool loadExtensions, RazorRuntime defaultRuntime, string assemblyDirectory ) : System
baseDirectory string
loadExtensions bool
defaultRuntime RazorRuntime
assemblyDirectory string
리턴 System