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.
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.