Seeking design suggestions for a simple application RRS feed

  • Question

  • Hi,

    I have a public class called DoWork.cs that has a function

    public void StartWork(object somePara)

    DoWork.StartWork() can be called in 2 ways:
    1) From a timer_elpased event handler
    2) From another event handler, handling an event raised by another dll

    The timer handler and the other handler are in the same project as DoWork.cs.
    Both these events could be raised at the same time and could call the DoWork.StartWork() at the same time.
    Ideally, both these handlers or any other class should be able to invoke DoWork.StartWork(object) in a standardised way.

    I need some suggestions to design this simple applications. How many and what classes or interface should I use? Any synchronisation menchanism should be employed or not? Any queues should be used or not? Things like that.

    Thank you.


    Thursday, March 8, 2007 8:37 PM