Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8060713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:04:57+00:00 2026-06-05T10:04:57+00:00

Scenario : Read files from different servers. Each server provide files with different format

  • 0

Scenario:

  • Read files from different servers. Each server provide files with different format, extension and data.
  • The reading process is periodically different for each server (per minute, hour, weekly, monthly).
  • There should be config file (or whatever) to set the configuration related to “File format”, “File extension”, “Server credentials”.

My Implementation:

I wrote an application to read these different files depending on configuration set as follow:

interface IServer
{
    // Common implementation
}

[ServerPath("anyLocation")]
[FileDelimiter(",")]
[FileSearchPattern("*.txt")]
class Server2 : IServer
{
    // Specific implementation
}

[ServerPath("anyLocation")]
[FileDelimiter("|")]
[FileSearchPattern("*.csv")]
class Server1 : IServer
{
    // Specific implementation
}

Questions:

  • Should I use a windows service to run this app?
  • The settings I set as attributes should exists as settings accessible to the user, How to do?
  • Most importantly, I don’t know if I should use a separate service for each server, taking into consideration that reading time may interfere (what happen in that case?). I still prefer to have a single service.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T10:04:58+00:00Added an answer on June 5, 2026 at 10:04 am

    I wouldn’t create a windows service for this kind of problem.

    Create a simple console application that accepts a commend line parameter to specify the desired target (server) and read the according configuration from a simple App.config instead of hardcoding it into your app.

    Run your console app useing Scheduled Tasks – this will give you fine grained scheduling control, built in monitoring and error tracking without any additional code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a scenario where I have to read/write data from/into csv files. I
Scenario: I have imported the data from SQl Server to HDFS. The data stored
Consider the following scenario: A process on the server is used to handle data
using : SQL Server 2008 R2, Entityframework 4.3.1 my scenario : I read my
Scenario: old legacy code in rpg have to consume data from a new web
one my application features is tod download files from our ftp server. And of
I'm trying to read ID3v2.3.0 tags from mp3 files, and the values are of
I have some very big binary files (>1TB each) with highly compressed data. I
Scenario Having already read a post on this on the same site, which didn't
Scenario I've got a windows service written in C#. I've read all the google

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.