What is the purpose of the Cache property in the BizObject? Why not just reference the 'Cache' object directly in the BLL modules? I assume this is just another design consideration that provides a single point to alter/enhance the caching scheme if desired, but I'm not sure...
Also, why couldn't a simple variable declaration be used instead of a property? The following variable declaration seems more concise than the property declaration used in the code.
Code:
Protected Shared ReadOnly Cache As Cache = HttpContext.Current.Cache
Property declaration used in BizObject.
vb code:
Code:
Protected Shared ReadOnly Property Cache() As Cache
Get
Return HttpContext.Current.Cache
End Get
End Property
Is this a semantical preference or is there a difference in functionality I'm missing?