I have Repositoryone that accepts Providerwhich needs to pass an object to ProviderCredentials. An object ProviderCredentialsis a class, but its values ββare known only at runtime because they live in the Web.config section <applicationSettings />.
How can I extract values ββfrom Web.config, build an object ProviderCredentialsand enter it in Providerusing Ninject? Not sure if it matters, but classes Providerand ProviderCredentialslive in a separate project than MVC project in the same solution.
source
share