question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support ConfigurationManager based config for sharing with .NET Framework

See original GitHub issue

I put together a POC a while back on incorporating ConfigurationManager to work for configuration of clients so that code could be shared between .NET Framework and Core easier. I’m opening this to see if there is interest. I put this together before CoreWCF was a thing and not sure if it would be an easy integration or not.

Here’s the link: https://github.com/twsouthwick/ServiceModel.Configuration

The API looks like this:

services.AddServiceModelClient()
  .AddConfigurationManagerFile("wcf.config")
  .AddDefaultChannel<IRoleService>("roles");

It uses ASP.NET Core IOptions and builds up the services so they can be directly injected. I only know the basics of WCF, though, so not sure how well this would extend to other use cases.

Feel free to close if there’s no interest in it. Much of the configuration code for this came from ReferenceSource and has been #if/#def’d for types that didn’t exist when I was playing with it.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:21 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
Ximik87commented, May 17, 2021

@birojnayak, yes, I almost finished (there were some problems, so I didn’t make it by the end of April)

1reaction
Ximik87commented, Mar 31, 2021

yes, this is exactly the solution when CoreWCF.ConfigurationManager is a separate project ( and respectively Nuget package) and it depends on CoreWCF.NetTcp, CoreWCF.Http @birojnayak, I really want to finish by the end of April.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using ConfigurationManager in Asp.net Core with . ...
When you create an ASP.NET Core website you have the option of using .NET Core or .NET Framework, depending on (among other things)...
Read more >
Connection Strings and Configuration Files - ADO.NET
WebConfigurationManager is used to work with ASP.NET configuration files. It is designed to work with configuration files on a Web server, and ...
Read more >
Site and site system prerequisites for Configuration Manager
Windows-based computers require specific configurations to support their use as Configuration Manager site system servers.
Read more >
Configuration builders for ASP.NET
Configuration builders provide a modern and agile mechanism for ASP.NET apps to get configuration values from external sources. Configuration ...
Read more >
ConfigurationManager.AppSettings Property
The first example shows a simple console application that reads application settings, adds a new setting, and updates an existing setting. C#
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found