Ivan Balan

Results 34 comments of Ivan Balan

Do you add RazorLight to IServicecollection?

Please, use this extension method https://github.com/toddams/RazorLight/blob/master/src/RazorLight/Extensions/ServiceCollectionExtensions.cs#L10

Thank you for your reply, that may help a lot

Try to set OperatingAssembly to Assembly.GetCallingAssembly()

You can not set it programatically, only in a template itself

Have you had a chance to create a PR, @conficient? :)

Your template is built by Roslyn and put into in-memory assembly. Because of that, sharing between multiple instances is not possible at the moment. Possible solution is to add ability...

Can you describe your use-case? You have multiple application servers and you'd like to cache templates to Redis, so they can be shared between all of those instances?

In general, having all your servers to compile and cache templates is not bad at all. If you are storing your templates in files, when file with your template changes...