Click here to Skip to main content
14,659,434 members
Home » Discussions » C#
   

C#

 
AnswerRe: Language Pin
Christian Graus29-Jul-08 12:38
mveChristian 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
Membersteve_rm29-Jul-08 7:54 
AnswerRe: clickonce register COM problem Pin
paas29-Jul-08 8:01
Memberpaas29-Jul-08 8:01 
QuestionA design decision - how to instantiate and call BLL classes? Pin
Pawel Krakowiak29-Jul-08 6:19
MemberPawel Krakowiak29-Jul-08 6:19 
AnswerRe: A design decision - how to instantiate and call BLL classes? Pin
led mike29-Jul-08 6:38
Memberled mike29-Jul-08 6:38 
GeneralRe: A design decision - how to instantiate and call BLL classes? Pin
Pawel Krakowiak29-Jul-08 21:09
MemberPawel Krakowiak29-Jul-08 21:09 
GeneralRe: A design decision - how to instantiate and call BLL classes? Pin
led mike30-Jul-08 6:03
Memberled 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
MemberPawel Krakowiak30-Jul-08 6:29 
GeneralRe: A design decision - how to instantiate and call BLL classes? Pin
led mike30-Jul-08 6:43
Memberled mike30-Jul-08 6:43 
QuestionC# Topmost without focus Pin
Zocrates29-Jul-08 6:00
MemberZocrates29-Jul-08 6:00 
AnswerRe: C# Topmost without focus Pin
led mike29-Jul-08 7:27
Memberled 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
MemberZocrates29-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
MemberZocrates29-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
Memberled mike29-Jul-08 8:31 
GeneralRe: C# Topmost without focus Pin
Zocrates29-Jul-08 8:54
MemberZocrates29-Jul-08 8:54 
GeneralRe: C# Topmost without focus Pin
led mike29-Jul-08 9:08
Memberled mike29-Jul-08 9:08 
GeneralRe: C# Topmost without focus Pin
Zocrates29-Jul-08 10:22
MemberZocrates29-Jul-08 10:22 
GeneralRe: C# Topmost without focus Pin
led mike29-Jul-08 10:34
Memberled mike29-Jul-08 10:34 
GeneralRe: C# Topmost without focus Pin
Zocrates29-Jul-08 10:42
MemberZocrates29-Jul-08 10:42 
GeneralRe: C# Topmost without focus Pin
Zocrates29-Jul-08 10:51
MemberZocrates29-Jul-08 10:51 
GeneralRe: C# Topmost without focus Pin
Zocrates29-Jul-08 10:57
MemberZocrates29-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.