From c5456a1b65a2fc15ba8465e5f394ac47da695bbf Mon Sep 17 00:00:00 2001 From: zhouzehui <553782463@qq.com> Date: Wed, 13 Dec 2017 23:09:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 66672b2..f0b4ca9 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ ```csharp var builder = new SiloHostBuilder() .UseConfiguration(config) - .AddApplicationPartsFromReferences(typeof(Account).Assembly) + .ConfigureApplicationParts(parts => parts.AddApplicationPart(typeof(Account).Assembly).WithReferences()) .ConfigureServices((context, servicecollection) => { servicecollection.AddSingleton();//注册序列化组件 @@ -37,7 +37,7 @@ var config = ClientConfiguration.LocalhostSilo(); var client = new ClientBuilder() .UseConfiguration(config) - .AddApplicationPartsFromReferences(typeof(IAccount).Assembly) + .ConfigureApplicationParts(parts => parts.AddApplicationPart(typeof(IAccount).Assembly).WithReferences()) .ConfigureLogging(logging => logging.AddConsole()) .ConfigureServices((servicecollection) => {