dazinator / Dotnettency

Mutlitenancy for dotnet applications
MIT License
111 stars 23 forks source link

Use a URI instead of a string, for identifying tenant context #19

Closed dazinator closed 7 years ago

dazinator commented 7 years ago

When examining the current http request, at the moment, we return a string which is used to identify a tenant that should be loaded.

I think a better fit would be to use a URI.

A Uri provides a better indication in my view (from an API perspective) as to that we are trying to do here. i.e return an identifier. A string can do the same, but doesn't enforce any particular format or structure. I prefer to have a format and structure around this.