Where should i read the cache?

  • Thread starter Thread starter Julia
  • Start date Start date
J

Julia

Hi,

I have Server class which uses a Pop3Reciever class
both written by me.

The server initialize Cache which hold configuration for pop3
communication(password,user name,server)

I wonder where is the best place to read from the cache and why?

I can read it in the Server class and pass the parameters to the
Pop3Reciever constructor
or I can read it directly in the Pop3Reciever class


Thanks.
 
that's a design question. without knowing the architecture in some detail,
it seems rather pointless to make a suggestion

--
Regards,
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc
_________________________
 
Yes it is true,it is a design question.

Since my application is made of layers I always ask myself what is the best
way to pass parameters to other layers
and why


Thanks anyway.


Alvin Bruney said:
that's a design question. without knowing the architecture in some detail,
it seems rather pointless to make a suggestion

--
Regards,
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc
_________________________


Julia said:
Hi,

I have Server class which uses a Pop3Reciever class
both written by me.

The server initialize Cache which hold configuration for pop3
communication(password,user name,server)

I wonder where is the best place to read from the cache and why?

I can read it in the Server class and pass the parameters to the
Pop3Reciever constructor
or I can read it directly in the Pop3Reciever class


Thanks.
 
Back
Top