Skip to content
This repository has been archived by the owner on Nov 8, 2020. It is now read-only.

Commit

Permalink
文档调整
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzehui committed Dec 13, 2017
1 parent ea52922 commit c5456a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<ISerializer, ProtobufSerializer>();//注册序列化组件
Expand All @@ -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) =>
{
Expand Down

0 comments on commit c5456a1

Please sign in to comment.