You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
William David Cossey edited this page Jun 7, 2020
·
1 revision
CompileFromFileAsync()
CompileFromFileAsync() uses CompileFromStreamAsync() internally and manages the lifecycle of the StreamReader, disposing it when reading the file has completed.
CompileFromStreamAsync() allows (you) the developer to manage the lifecycle of the StreamReader, making it possible to load templates from additional sources (i.e. Resources).
The only caveat to using CompileFromStreamAsync() is that the position of the underlying Stream will be set to 0 (zero) and the buffer cleared.