C# 클래스 EU4.Stats.Web.Templater

The Templater provides a thread safe mechanism for rendering objects into html, caching the template, and updating the template whenever the template changes. The current implementation uses mutual exclusive locking. The reason for this is two-fold. One, it is easy to get threading right, and secondly, generating the resulting html isn't computationally intensive so the lock will only be acquired for a few moments.
상속: ITemplate
파일 보기 프로젝트 열기: nickbabcock/EU4.Savegame 1 사용 예제들

공개 메소드들

메소드 설명
Render ( StatsModel obj ) : string
Templater ( string filepath ) : RazorEngine.Templating

비공개 메소드들

메소드 설명
watcher_Changed ( object sender, FileSystemEventArgs e ) : void

메소드 상세

Render() 공개 메소드

public Render ( StatsModel obj ) : string
obj StatsModel
리턴 string

Templater() 공개 메소드

public Templater ( string filepath ) : RazorEngine.Templating
filepath string
리턴 RazorEngine.Templating