# WCF-DotNetCore **Repository Path**: newsLocalhost/WCF-DotNetCore ## Basic Information - **Project Name**: WCF-DotNetCore - **Description**: .NET Core调用WCF(不通过代理类) - **Primary Language**: C# - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 9 - **Created**: 2019-04-13 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README A library makes .NET Core programs be able to call WCF server without proxy classes. ## Finally static void Main(string[] args) { //Init Container IServiceProvider serviceProvider = InitServiceProvider(); //Calling WCF using (IServiceScope serviceScope = serviceProvider.CreateScope()) { IProductService productService = serviceScope.ServiceProvider.GetService();//This is a remote interface string products = productService.GetProducts(); Console.WriteLine(products); } Console.ReadKey(); }