Skip to content

Commit

Permalink
Update gRPC README.md for new version
Browse files Browse the repository at this point in the history
  • Loading branch information
quyvu01 committed Dec 27, 2024
1 parent aaa95d0 commit 1723797
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/OfX.Grpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ For Client:
```csharp
builder.Services.AddOfXEntityFrameworkCore(cfg =>
{
cfg.RegisterContractsContainsAssemblies(typeof(SomeContractAssemblyMarker).Assembly);
cfg.RegisterHandlersContainsAssembly<SomeHandlerAssemblyMarker>();
cfg.RegisterClientsAsGrpc(config => config.RegisterForAssembly<SomeContractAssemblyMarker>("http://localhost:5001")); //gRPC server host
cfg.AddContractsContainNamespaces(typeof(SomeContractAssemblyMarker).Assembly);
cfg.AddHandlersFromNamespaceContaining<SomeHandlerAssemblyMarker>();
cfg.AddGrpcClients(config => config.RegisterContractsFromNamespaceContainning<SomeContractAssemblyMarker>("http://localhost:5001")); //gRPC server host
});
```
Expand Down

0 comments on commit 1723797

Please sign in to comment.