Click here to Skip to main content
15,910,211 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: 'Factory' pattern? Pin
Moak16-May-07 6:07
Moak16-May-07 6:07 
AnswerRe: 'Factory' pattern? Pin
Sameerkumar Namdeo17-May-07 17:24
Sameerkumar Namdeo17-May-07 17:24 
Questionicons for navigation and buttons Pin
Hasan Jaffal15-May-07 13:12
Hasan Jaffal15-May-07 13:12 
AnswerRe: icons for navigation and buttons Pin
Joseph Guadagno16-May-07 4:17
Joseph Guadagno16-May-07 4:17 
AnswerRe: icons for navigation and buttons Pin
Hamid_RT23-May-07 0:07
Hamid_RT23-May-07 0:07 
GeneralRe: icons for navigation and buttons Pin
Hasan Jaffal23-May-07 0:10
Hasan Jaffal23-May-07 0:10 
GeneralRe: icons for navigation and buttons Pin
Hamid_RT23-May-07 1:00
Hamid_RT23-May-07 1:00 
QuestionPlugin inheritance architecture Pin
Adam Crawford15-May-07 1:47
Adam Crawford15-May-07 1:47 
Hello guys and girls,

I've got a generic architecture best principals question for you I as hoping people could give me some pointers on (or at least, generate some discussion over). The issue I've just encountered is as follows:

I'm generating a plugin for a service. My plugin will be compiled as a stand alone dll and called from an application.
There are two stages of execution for the plugin: 1. Set up as part of a winforms application, then 2) execution as part of a windows service.
In generating the setup information I specify a list of types of "Email Processor" class to use, where EmailProcessor is an abstract class and each type of email processor extends that abstract class to create in instance class.
In saving the settings, the list of EmailProcessors was to be saved using XmlSerialisation (this is functionality of the parent application and not my plugin), which throws an error since the type of the EmailProcessor is dynamic. I can't implement any sort of custom XmlSerialisation so I have had to make the abstract EmailProcessor class into a real (non-abstract) class and then throw a NotImplementedException from each of its methods.
This has obviously broken the basic inheritance model slightly - not so much as to be truly irritating but enough to make me think there was probably a more correct way of approaching the issue.
Can anyone suggest to me what I should have done to allow EmailProcessors to maintain their inheritance model but overcome the issues I had with getting round the XmlSerialisation of dynamic types that I had no control over?

Any thoughts greatly appreciated.

Cheers,
Adam
AnswerRe: Plugin inheritance architecture Pin
Joseph Guadagno15-May-07 10:51
Joseph Guadagno15-May-07 10:51 
GeneralRe: Plugin inheritance architecture Pin
Adam Crawford22-May-07 1:19
Adam Crawford22-May-07 1:19 
AnswerRe: Plugin inheritance architecture [modified] Pin
Moak16-May-07 5:59
Moak16-May-07 5:59 
GeneralRe: Plugin inheritance architecture Pin
Adam Crawford22-May-07 1:25
Adam Crawford22-May-07 1:25 
GeneralRe: Plugin inheritance architecture Pin
Moak25-May-07 2:36
Moak25-May-07 2:36 
QuestionDistributed SingleTon Instance class and Deriving from SingleTon Instance class. Pin
Chetan Kudalkar14-May-07 22:19
Chetan Kudalkar14-May-07 22:19 
QuestionDesigning a ledger system Pin
Rocky#13-May-07 22:47
Rocky#13-May-07 22:47 
Answer[Message Deleted] Pin
#12314-May-07 13:02
#12314-May-07 13:02 
GeneralRe: Designing a ledger system Pin
led mike14-May-07 18:22
led mike14-May-07 18:22 
GeneralRe: Designing a ledger system Pin
led mike14-May-07 20:05
led mike14-May-07 20:05 
GeneralRe: Designing a ledger system Pin
Rocky#15-May-07 21:03
Rocky#15-May-07 21:03 
GeneralRe: Designing a ledger system Pin
Rocky#15-May-07 22:14
Rocky#15-May-07 22:14 
GeneralRe: Designing a ledger system Pin
Rocky#15-May-07 22:43
Rocky#15-May-07 22:43 
General[Message Deleted] Pin
#12315-May-07 23:02
#12315-May-07 23:02 
GeneralRe: Designing a ledger system Pin
Rocky#15-May-07 23:22
Rocky#15-May-07 23:22 
GeneralRe: Designing a ledger system Pin
Rocky#18-May-07 1:24
Rocky#18-May-07 1:24 
GeneralRe: Designing a ledger system Pin
Rocky#22-May-07 2:13
Rocky#22-May-07 2:13 

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.