Click here to Skip to main content
15,888,908 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionDon't want the DAL layer to be referenced in the UI or UT layer Pin
benndonwload23-Aug-13 5:01
benndonwload23-Aug-13 5:01 
AnswerRe: Don't want the DAL layer to be referenced in the UI or UT layer Pin
benndonwload23-Aug-13 11:27
benndonwload23-Aug-13 11:27 
AnswerRe: Don't want the DAL layer to be referenced in the UI or UT layer Pin
jschell23-Aug-13 13:30
jschell23-Aug-13 13:30 
GeneralRe: Don't want the DAL layer to be referenced in the UI or UT layer Pin
benndonwload23-Aug-13 18:06
benndonwload23-Aug-13 18:06 
GeneralRe: Don't want the DAL layer to be referenced in the UI or UT layer Pin
jschell26-Aug-13 8:55
jschell26-Aug-13 8:55 
QuestionMoving Data within an Application Pin
AeroClassics12-Aug-13 12:05
professionalAeroClassics12-Aug-13 12:05 
AnswerRe: Moving Data within an Application Pin
jschell13-Aug-13 8:55
jschell13-Aug-13 8:55 
GeneralRe: Moving Data within an Application Pin
AeroClassics14-Aug-13 5:12
professionalAeroClassics14-Aug-13 5:12 
JSchell,
I see your point. Solving a specific type of problem this way can lead to overly complex code on some ocassions. However, this is really a specific problem that I tried to explain in a way that required the fewest words in an effort to avoid confusion.

This problem I have solved a couple of different ways and I am faced with it again. I was not completely happy with my other solutions. Having spent the majority of my career working in the Unix/Linux world these things are done differently. While I have written a lot of desktop code in the MS environment I find that I am trying to apply a Unix mindset to Windows desktop problems. I am not sure this is the best way!

So the problem remains. Regardless of where the data stream originates (pipe, TCP/IP etc) waiting for a connection and spinning off a thread to handle that communication channel is the easy part. What I find a bit more difficult to find a decent generic solution for. I am beginning to lean toward using an abstract class or an interface to put the burden on the user of the server object. This is just passing the buck so to speak. Unfortunately I also have to use this object!

This lead to the original question. What do most folks do when they need to move data from one object to another? I realize that you can just invoke a method in another object if you have a reference but that, in my personal opinion, is wrong. The server object should not know about the consumer of the data he should just make it available. Typically I toss the data into a queue and invoke an exposed event. But perhaps there is a better way?

Doug
I am a Traveler
of both Time and Space

GeneralRe: Moving Data within an Application Pin
jschell15-Aug-13 8:55
jschell15-Aug-13 8:55 
AnswerRe: Moving Data within an Application Pin
Eddy Vluggen14-Aug-13 6:03
professionalEddy Vluggen14-Aug-13 6:03 
AnswerRe: Moving Data within an Application Pin
ExcellentOrg21-Aug-13 22:04
ExcellentOrg21-Aug-13 22:04 
QuestionHow to store huge binary files without Database Pin
Mercurius846-Aug-13 21:50
Mercurius846-Aug-13 21:50 
AnswerRe: How to store huge binary files without Database Pin
Pete O'Hanlon6-Aug-13 22:09
mvePete O'Hanlon6-Aug-13 22:09 
GeneralRe: How to store huge binary files without Database Pin
Mercurius846-Aug-13 22:22
Mercurius846-Aug-13 22:22 
AnswerRe: How to store huge binary files without Database Pin
jschell7-Aug-13 8:22
jschell7-Aug-13 8:22 
GeneralRe: How to store huge binary files without Database Pin
Mercurius847-Aug-13 17:43
Mercurius847-Aug-13 17:43 
GeneralRe: How to store huge binary files without Database Pin
Richard MacCutchan7-Aug-13 20:50
mveRichard MacCutchan7-Aug-13 20:50 
GeneralRe: How to store huge binary files without Database Pin
Mercurius847-Aug-13 22:11
Mercurius847-Aug-13 22:11 
GeneralRe: How to store huge binary files without Database Pin
jschell8-Aug-13 7:52
jschell8-Aug-13 7:52 
GeneralRe: How to store huge binary files without Database Pin
Mercurius8411-Aug-13 16:55
Mercurius8411-Aug-13 16:55 
GeneralRe: How to store huge binary files without Database Pin
jschell12-Aug-13 8:11
jschell12-Aug-13 8:11 
GeneralRe: How to store huge binary files without Database Pin
Mercurius8412-Aug-13 21:41
Mercurius8412-Aug-13 21:41 
GeneralRe: How to store huge binary files without Database Pin
Richard MacCutchan12-Aug-13 22:50
mveRichard MacCutchan12-Aug-13 22:50 
GeneralRe: How to store huge binary files without Database Pin
Keld Ølykke9-Aug-13 22:40
Keld Ølykke9-Aug-13 22:40 
GeneralRe: How to store huge binary files without Database Pin
Mercurius8411-Aug-13 17:08
Mercurius8411-Aug-13 17:08 

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.