Avatar of cbrune
cbrune

asked on 

Need Help Refactoring please.

I need help with my authentication dll.  I am trying to read settings from the authenication.config inside the class library.  I am trying to write a strategy pattern to access different authenticatons methods, whether I want to use AD, Database, and etc.  Can someone please help me.

its located on my google drive.
https://drive.google.com/file/d/0B6LKujct8rieRXpjc1ZMbm13TTA/view?usp=sharing
C#

Avatar of undefined
Last Comment
FarWest
Avatar of kaufmed
kaufmed
Flag of United States of America image

Do you have a specific question?
Avatar of cbrune
cbrune

ASKER

I can't grab the app settings from authentication.config in the authentication config settings.. How do I?
Avatar of kaufmed
kaufmed
Flag of United States of America image

You put app settings in your main configuration file--i.e. the one that goes with the main executable. The configuration system doesn't read anything but that, even if you include additional configs. You can manually read the config, but it's usually easier/quicker to just include the settings in the main config.
Avatar of cbrune
cbrune

ASKER

But how do I have a secondary config and read files from there??
ASKER CERTIFIED SOLUTION
Avatar of FarWest
FarWest

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
C#
C#

C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).

98K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo