unosquare / embedio

A tiny, cross-platform, module based web server for .NET
http://unosquare.github.io/embedio
Other
1.47k stars 176 forks source link

Add overloads to .With*() module extension methods #343

Closed azixMcAze closed 5 years ago

azixMcAze commented 5 years ago

Hi! This PR overloads with a name parameter to most IWebModuleContainer .With*() extensions methods:

I did not add overloads to the WithAction() and On[Verb]() methods because I am not sure it would be useful and that's a lot of methods. I did not try either to add overloads to the WithCors() methods because of the potential ambiguity of a new string parameter in these methods with a lots of optional string parameters. I am also not sure either if it would be useful either.

This PR adds also a configure parameter to these methods:

This PR comes from my need of configure parameter in WithLocalSessionManager() and a name parameter in WithWebApi(). And so, why not be exhaustive?

azixMcAze commented 5 years ago

Thank you 👍