Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
AnswerRe: Language Pin
Christian Graus29-Jul-08 12:38
protectorChristian Graus29-Jul-08 12:38 
AnswerRe: Language Pin
DaveyM6929-Jul-08 12:52
professionalDaveyM6929-Jul-08 12:52 
Questionclickonce register COM problem Pin
steve_rm29-Jul-08 7:54
steve_rm29-Jul-08 7:54 
AnswerRe: clickonce register COM problem Pin
paas29-Jul-08 8:01
paas29-Jul-08 8:01 
QuestionA design decision - how to instantiate and call BLL classes? Pin
Pawel Krakowiak29-Jul-08 6:19
Pawel Krakowiak29-Jul-08 6:19 
AnswerRe: A design decision - how to instantiate and call BLL classes? Pin
led mike29-Jul-08 6:38
led mike29-Jul-08 6:38 
GeneralRe: A design decision - how to instantiate and call BLL classes? Pin
Pawel Krakowiak29-Jul-08 21:09
Pawel Krakowiak29-Jul-08 21:09 
GeneralRe: A design decision - how to instantiate and call BLL classes? Pin
led mike30-Jul-08 6:03
led mike30-Jul-08 6:03 
Pawel Krakowiak wrote:
Service talks to a repository which retrieves and stores data in the database.


So if that object will use a Database connection then hopefully it is designed to use connection pooling. If not it should be. That would be one primary concern and is therefore handled with connection pooling not within the scope of instancing the CatalogService objects.

Based on what you have posted it's possible that the idea of making CatalogService a singleton into the premature optimizations are the root of all evil [^]category.

Now that what the object does is somewhat known I will also comment that the singleton like code you originally posted does not appear to conform to best practices. Given there is no need to ensure a single instance the lack of correctness will likely not result in any problems.


led mike

GeneralRe: A design decision - how to instantiate and call BLL classes? Pin
Pawel Krakowiak30-Jul-08 6:29
Pawel Krakowiak30-Jul-08 6:29 
GeneralRe: A design decision - how to instantiate and call BLL classes? Pin
led mike30-Jul-08 6:43
led mike30-Jul-08 6:43 
QuestionC# Topmost without focus Pin
Zocrates29-Jul-08 6:00
Zocrates29-Jul-08 6:00 
AnswerRe: C# Topmost without focus Pin
led mike29-Jul-08 7:27
led mike29-Jul-08 7:27 
AnswerRe: C# Topmost without focus Pin
Paul Conrad29-Jul-08 7:45
professionalPaul Conrad29-Jul-08 7:45 
GeneralRe: C# Topmost without focus Pin
Zocrates29-Jul-08 8:03
Zocrates29-Jul-08 8:03 
GeneralRe: C# Topmost without focus Pin
Paul Conrad29-Jul-08 8:11
professionalPaul Conrad29-Jul-08 8:11 
GeneralRe: C# Topmost without focus Pin
Zocrates29-Jul-08 8:18
Zocrates29-Jul-08 8:18 
GeneralRe: C# Topmost without focus Pin
Paul Conrad29-Jul-08 8:22
professionalPaul Conrad29-Jul-08 8:22 
GeneralRe: C# Topmost without focus Pin
led mike29-Jul-08 8:31
led mike29-Jul-08 8:31 
GeneralRe: C# Topmost without focus Pin
Zocrates29-Jul-08 8:54
Zocrates29-Jul-08 8:54 
GeneralRe: C# Topmost without focus Pin
led mike29-Jul-08 9:08
led mike29-Jul-08 9:08 
GeneralRe: C# Topmost without focus Pin
Zocrates29-Jul-08 10:22
Zocrates29-Jul-08 10:22 
GeneralRe: C# Topmost without focus Pin
led mike29-Jul-08 10:34
led mike29-Jul-08 10:34 
GeneralRe: C# Topmost without focus Pin
Zocrates29-Jul-08 10:42
Zocrates29-Jul-08 10:42 
GeneralRe: C# Topmost without focus Pin
Zocrates29-Jul-08 10:51
Zocrates29-Jul-08 10:51 
GeneralRe: C# Topmost without focus Pin
Zocrates29-Jul-08 10:57
Zocrates29-Jul-08 10:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.