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 6214149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:49:34+00:00 2026-05-24T06:49:34+00:00

I want to make a Configuration Data Manager. This would allow multiple services to

  • 0

I want to make a Configuration Data Manager. This would allow multiple services to store and access configuration data that is common to all of them.
For the purposes of the Manager, I’ve decided to create a configuration class object – basically what every configuration data entry would look like:
Name, type, and value.

In the object these would all be strings that discribe the configuration data object itself. Once it has gotten this data from its database as strings, it would put it into this configuration object.

Then, I want it to send it through WCF to its destination. BUT, I don’t want to send a serialized version of the configuration object, but rather a serialized version of the object discribed by the configuration object.

The reason I’d like to do this is so that

  1. The Data Manager does not need to know anything about the configuration data.
  2. So I can add configuration objects easily without changing the service. Of course, I should be able to do all of the CRUD operations, not just read.

Summary:
Input: string of name, type and value

Output: Serialized output of the object; the object itself is “type name = value”

Questions:

  1. Is this a good method for storing and accessing the data?
  2. How can I/can I serialize in this manner?
  3. What would the function prototype of a getConfigurationData method look like?

I have decided to go in a different direction, thanks for the help.

  • 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-05-24T06:49:34+00:00Added an answer on May 24, 2026 at 6:49 am

    Is this a good method for storing and accessing the data?

    That is difficult to answer, the best I can give you is both a “yes” and a “No”. Yes, It’s not a bad idea to isolate the serialization/rehydration of this data…. and No, I don’t really care much for the way you describe doing it. I’m not sure I would want it stored in text unless I plan on editing it by hand, and if I’m editing it by hand, I’m not sure I’d want it in a database. It could be done; just not sure you’re really on the right track yet.

    How can I/can I serialize in this manner?

    Don’t build your own, never that. Use a well-known format that already exists. Either XML or JSON will serve for hand-editable, or there are several binary formats (BSON, protobuffers) if you do not need to be able to edit it.

    What would the function prototype of a getConfigurationData method look like?

    I would first break-down the ‘general’ aka common configuration into a seperate call from the service specific configuration. This enables getConfigurationData to simply return a rich type for common information. Then either add a extra param and property for service specific data, or add another method. As an example:

    [DataContract]
    public class ConfigurationInfo
    {
        [DataMember]
        public string Foo;
        ...
        // This string is a json/xml blob specific to the 'svcType' parameter
        [DataMember]
        public string ServiceConfig;
    }
    
    [DataContract]
    public interface IServiceHost
    {
        ConfigurationInfo GetConfigurationData(string svcType);
    }
    

    Obviously you place a little burden on the caller to parse the ‘ServiceConfig’; however, your server can treat it as an opaque string value. It’s only job is to associate it with the appropriate svcType and store/fetch the correct value.

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

Sidebar

Related Questions

I want to make multiple dialogs and with a default object for most common
I want to make an etag that matches what Apache produces. How does apache
I want to make a table in SqlServer that will add, on insert, a
I want to make an entity that has an autogenerated primary key, but also
I want to make sure that a set of functions have the same signature
I want to make a JavaScript application that's not open source, and thus I
I want to use a temp directory that will be unique to this build.
I want to make load balancing at my server. My current configuration: web application
Got this simple piece of html code and I want to make the TEST
I have very simple query. I want to make sure that I don't have

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.