jolmari / netcore-wcf-service-proxy Goto Github PK
View Code? Open in Web Editor NEWExample of consuming multiple WCF services using a proxy implementation in a ASP.NET Core Web-application.
License: MIT License
Example of consuming multiple WCF services using a proxy implementation in a ASP.NET Core Web-application.
License: MIT License
The console application is barely a working .NET Core application, it would be beneficial for demonstrative purposes to replace it with a full-fledged ASP.NET Core application.
Should replace the concrete object initialization logic in all of the projects with some sort of Dependency Injection pattern. Most likely the ASP.NET core built-in IoC is enough.
The solution needs multiple WCF endpoints to truly show an example of a flexible and generic proxy implementation. The proxy itself needs to evolve also to accomodate this change.
ASP.NET Core application project relies on the full 4.6 framework. Figure out a way to drop reliance on System.ServiceModel and migrate to use only the .NET Core 2 framework.
Here i have 2 concerns.
private readonly IWcfProxy<IPersonService> clientProxy;
public PersonServiceWrapper(string endpointUrl)
{
clientProxy = new WcfProxy<IPersonServiceChannel>(endpointUrl);
}
public CountryServiceWrapper(IWcfProxy<ICountryServiceChannel> proxy)
{
clientProxy = proxy;
}
services.AddScoped<ICountryServiceWrapper>(provider => new CountryServiceWrapper(endpointsConfig.CountryService));
services.AddScoped<IPersonServiceWrapper>(provider => new PersonServiceWrapper(endpointsConfig.PersonService));
services.AddSingleton<IWcfProxy<ICarrierOperationsService>>(service =>
new WcfProxy<ICarrierOperationsServiceChannel>(service
.GetRequiredService<IOptions<ServiceEndpointConfiguration>>().Value.CarrierOperationsService));
When authentication and endpoint URL based client creation is implemented, should store the necessary data in environment based config files.
Usernames & Password have to be stored in a secure location, not in the repository.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.