Skip to content

Is Run call multi-thread safe? #117

Discussion options

You must be logged in to vote

Hi, yes, Run is thread safe. It was not heavily tested by me, but it is supposed to be thread safe by design.
Run will create new IRazorEngineTemplate instance for each call, thus it is safe to call Run by multiple threads

public async Task<string> RunAsync(object model = null)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by praveen-ramesh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants