D
deko
I'm trying to finalize a windows service design any would appreciate any
comments - I'm new to windows services.
Essentially my UI app relies on a service to schedule IO tasks. The service
does nothing but keep track of elapsed time.
The reason I need a service is because the IO tasks are login agnostic. It
doesn't matter if anyone, or no one, is logged in. The IO tasks are defined
in the UI.
When the service starts, it reads from an xml file to get initial values for
its counters (a series of integer ProjectIDs and TimeSpan values). If
during the current system session, the elapsed System Uptime exceeds any of
the service's counters, IO tasks need to be run.
The catch is that the business logic required to run these IO tasks is
contained in the UI app. Each service counter consists of a ProjectID and a
TimeSpan: the Project corresponding to the ProjectID is defined in the UI,
and the TimeSpan value is a ticking count based on System Uptime, maintained
by the service.
How can the service interact with the UI app to utilize business logic in
the UI app?
Can I initialize an object in the UI app from the service?
How can I pass the service's TimeSpan to the UI app?
Can the UI app access the service's TimeSpan value at any given point?
Must I use remoting?
Other options?
comments - I'm new to windows services.
Essentially my UI app relies on a service to schedule IO tasks. The service
does nothing but keep track of elapsed time.
The reason I need a service is because the IO tasks are login agnostic. It
doesn't matter if anyone, or no one, is logged in. The IO tasks are defined
in the UI.
When the service starts, it reads from an xml file to get initial values for
its counters (a series of integer ProjectIDs and TimeSpan values). If
during the current system session, the elapsed System Uptime exceeds any of
the service's counters, IO tasks need to be run.
The catch is that the business logic required to run these IO tasks is
contained in the UI app. Each service counter consists of a ProjectID and a
TimeSpan: the Project corresponding to the ProjectID is defined in the UI,
and the TimeSpan value is a ticking count based on System Uptime, maintained
by the service.
How can the service interact with the UI app to utilize business logic in
the UI app?
Can I initialize an object in the UI app from the service?
How can I pass the service's TimeSpan to the UI app?
Can the UI app access the service's TimeSpan value at any given point?
Must I use remoting?
Other options?