Giter VIP home page Giter VIP logo

netcore-wcf-service-proxy's People

Contributors

crnd avatar jolmari avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

netcore-wcf-service-proxy's Issues

Inversion of Control for dependency handling

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.

Multiple Wcf Endpoints

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.

Why Creating new WcfProxy in constructor?

Here i have 2 concerns.

  1. Why we are creating instances using new? Can we register it by dependency injection and inject the IWcfProxy in the constructor.
  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));

  1. Another question is can we use the singleton registration for the WcfProxy class?
services.AddSingleton<IWcfProxy<ICarrierOperationsService>>(service =>
               new WcfProxy<ICarrierOperationsServiceChannel>(service
                   .GetRequiredService<IOptions<ServiceEndpointConfiguration>>().Value.CarrierOperationsService));

Config files

When authentication and endpoint URL based client creation is implemented, should store the necessary data in environment based config files.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.