2 way Dependancy Breaker Pattern

L

Learnicus

Hello,

I have a Winforms app that accessess a webservice application that i have
written. Both of these use a common class called replication to carry
changes from an online database <> offline database.

Replication in turn holds the web references to the webservice such that
webservice refs replication.dll and replication.dll references webservices.
This creates some problem when building and sometimes i have to comment out
all references to the webservice objects and build a shell of
replication.dll so i can compile webservices and then go back and uncomment
the webservices refs in replication.dll and recompile it.

Is there a pattern or recommended practise for this scenario. I want to
abstract out one dependancy from the other but i cant think of a way to do
it becuase then the abstraction will still be dependant on either the
webservice or the replication and i'll just end up in the same spot but with
an additional class in the mix?

I hope this made sense.

Thanks

Lenny
 
C

Cor Ligthert [MVP]

Learnicus,

The WindowForms app and the Webservice should be completely independent from
each other.

Although that they can use the same types of classes. By instance in this
case the dataclass(/es), most proferable probably datases/datatables.

Just my thought,

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top