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

  • SEARCH
  • Home
  • 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 6130299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:50:32+00:00 2026-05-23T16:50:32+00:00

We are using a Provider Model for a Payment gateways and I am hoping

  • 0

We are using a Provider Model for a Payment gateways and I am hoping to figure out a way to do the following;

Each provider should have it’s own configuration file. This will contain only the configuration applicable to that provider.

The consumer would have a configuration file that stores only the entries that are required, such as Unity.The consumer would then load the providers via Unity.

We could potentially have a number of Providers and encapsulating the configuration of each means that can be pre-packaged and the only requirement on the consumer would be an alias to the Type and this could then be ‘slotted in’.

As far as I can see, there is no way to have multiple configuration files and the provider’s configuration is currently being ignored. However, I am hoping that perhaps a workable solution has been found by someone.

Thanks in advance

  • 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-23T16:50:32+00:00Added an answer on May 23, 2026 at 4:50 pm

    You can have as many configuration files as you like! Although you can only have one root config file per application, you can externalize most sections of this file into external separate files.

    However, in this case, I’d be inclined to use XML files containing a serialized configuration object for each Provider.

    Create a factory method to deserialize the config, build the configuration class and create each concrete Provider.

    In your application config, just store the information required by the factory, such as the location of the XML configuration file for each provider.

    Incidentally (& pedantically) – there is no such thing as a Provider Pattern. The Provider Model is typically implemented by combining Strategy and Factory patterns.

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

Sidebar

Related Questions

While using the Entity Framework I have split it out to it's own project:
I have a ASP.NET MVC site using Membership Provider. I have trouble testing some
I am using the Membership.Provider for security in my MVC Application. I have a
I have one asp.net web application. It is using two membership provider. Two sign-in
I have been using the System.Data.SQLite provider for my application. When I try to
I'm implementing an oauth provider using DotNetOpenAuth CTP library. So I have created an
We have been developing a hub/spoke synchronization model using Microsoft Sync Framework and WCF,
When the .net 2.0 framework first came out, the provider model was all the
I have decided to move my C# daemon application (using dotConnect as ADO.NET provider)
I have an entity 4.0 model that is using a SqlServerCE database as its

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.