J
John
Hello everyone!
I've read many articles about asp.net, business and data layers, and none of
them seem to discourage the use of HttpContext specific variables in
non-HttpContext specific layers; relying on the presence of the HttpSession
or HttpRequest variables in the business layer for example.
From what I can gather, doing this prevents these layers from being reused
by different clients (winforms for example) since this context will not
exist.
If this is so, then why is it not more widely discouraged? Is there a
common methodology for providing context to lower level layers without tying
them to one particular client?
Thanks in advance.
I've read many articles about asp.net, business and data layers, and none of
them seem to discourage the use of HttpContext specific variables in
non-HttpContext specific layers; relying on the presence of the HttpSession
or HttpRequest variables in the business layer for example.
From what I can gather, doing this prevents these layers from being reused
by different clients (winforms for example) since this context will not
exist.
If this is so, then why is it not more widely discouraged? Is there a
common methodology for providing context to lower level layers without tying
them to one particular client?
Thanks in advance.