lundi 2 septembre 2019

Can I use WebApplicationFactory in my console application to run the Razor engine and generate some html using the TestServer?

I have a scheduled job (.net core console application) where I need to generate some html. I don't want to create a full kestrel server and listen to the tcp port. Does it make sense to use WebApplicationFactory with test server(which doesn't open any port) and generate some html that will be used for production?

Aucun commentaire:

Enregistrer un commentaire