NancyFx/Nancy — pull request #1198 by liddellj (2013-08-23 08:48:03+00:00)
Title: Added locking around manipulation of namespace imports on RazorEngineHos...

fixes #1173

This is a fix for a threading related issue using the RazorViewEngine - whereby multiple threads manipulating RazorEngineHost.NamespaceImports can result in empty using statements in generated Razor ("using ;"). This resulted from the fact that RazorEngineHost.NamespaceImports is an instance of HashSet - which is not thread safe.