Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Design and Architecture
  4. Best Pattern for a New Service

Best Pattern for a New Service

Scheduled Pinned Locked Moved Design and Architecture
csharpdatabasevisual-studiodesignsysadmin
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Brian C HartB Offline
    Brian C HartB Offline
    Brian C Hart
    wrote on last edited by
    #1

    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

    K J 3 Replies Last reply
    0
    • Brian C HartB Brian C 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

      K Offline
      K Offline
      kisMicrosoftDev
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • Brian C HartB Brian C 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

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        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 HartB 1 Reply Last reply
        0
        • J jschell

          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 HartB Offline
          Brian C HartB Offline
          Brian C Hart
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • Brian C HartB Brian C 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

            J Offline
            J Offline
            jschell
            wrote on last edited by
            #5

            You might look at a translator pattern. However your description isn't that complex so without additional requirements it is just a basic export process.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups