Best Pattern for a New Service
-
Hi, I am trying to be fastidious about following enterprise application architecture best practices in my development and that includes using design patterns. I have a new requirement to write a C# service using .NET 3.5 and what it does is, after a timer goes off, it runs various database queries to retrieve needed information and then writes out a text file to disk. The text file contains the data, but the file has to be formatted in accordance with a set protocol. This is not client/server. This is an automated, faceless process implemented as a Windows Service. Any tips or tricks on which VS tools/techniques and patterns in the VS2008 and .NET 3.5 world would be most useful for this type of requirement? I'm only asking because I am still relatively new to patterns.
Sincerely Yours, Brian Hart
-
Hi, I am trying to be fastidious about following enterprise application architecture best practices in my development and that includes using design patterns. I have a new requirement to write a C# service using .NET 3.5 and what it does is, after a timer goes off, it runs various database queries to retrieve needed information and then writes out a text file to disk. The text file contains the data, but the file has to be formatted in accordance with a set protocol. This is not client/server. This is an automated, faceless process implemented as a Windows Service. Any tips or tricks on which VS tools/techniques and patterns in the VS2008 and .NET 3.5 world would be most useful for this type of requirement? I'm only asking because I am still relatively new to patterns.
Sincerely Yours, Brian Hart
Store as an XML file, consider XML processing as you are dealing with multi-databases, don't worry about design pattern at this point, it should work fine
-
Hi, I am trying to be fastidious about following enterprise application architecture best practices in my development and that includes using design patterns. I have a new requirement to write a C# service using .NET 3.5 and what it does is, after a timer goes off, it runs various database queries to retrieve needed information and then writes out a text file to disk. The text file contains the data, but the file has to be formatted in accordance with a set protocol. This is not client/server. This is an automated, faceless process implemented as a Windows Service. Any tips or tricks on which VS tools/techniques and patterns in the VS2008 and .NET 3.5 world would be most useful for this type of requirement? I'm only asking because I am still relatively new to patterns.
Sincerely Yours, Brian Hart
Brian C Hart wrote:
I have a new requirement to write a C# service using .NET 3.5 and what it does is, after a timer goes off, it runs various database queries to retrieve needed information and then writes out a text file to disk. The text file contains the data, but the file has to be formatted in accordance with a set protocol.
Pretty sure you can do that without C# at all. Windows has a scheduler. Most databases provide output capability. So is there some other requirement?
-
Brian C Hart wrote:
I have a new requirement to write a C# service using .NET 3.5 and what it does is, after a timer goes off, it runs various database queries to retrieve needed information and then writes out a text file to disk. The text file contains the data, but the file has to be formatted in accordance with a set protocol.
Pretty sure you can do that without C# at all. Windows has a scheduler. Most databases provide output capability. So is there some other requirement?
I am in an old fashioned shop that has distributed a complex software system to manufacturers of packaging, some who haven't even upgraded from Win2000. So I have no choice but to do a C# service. So I am asking what is the best design pattern to use for a service? Will some one please just answer me that question. Boss is making me do it this way. I have no other choice.
Sincerely Yours, Brian Hart
-
Hi, I am trying to be fastidious about following enterprise application architecture best practices in my development and that includes using design patterns. I have a new requirement to write a C# service using .NET 3.5 and what it does is, after a timer goes off, it runs various database queries to retrieve needed information and then writes out a text file to disk. The text file contains the data, but the file has to be formatted in accordance with a set protocol. This is not client/server. This is an automated, faceless process implemented as a Windows Service. Any tips or tricks on which VS tools/techniques and patterns in the VS2008 and .NET 3.5 world would be most useful for this type of requirement? I'm only asking because I am still relatively new to patterns.
Sincerely Yours, Brian Hart