Skip to content

Commit

Permalink
docs: Add example DI registration of IClusterClient (OrleansContrib#65
Browse files Browse the repository at this point in the history
)
  • Loading branch information
seniorquico authored and galvesribeiro committed Mar 21, 2019
1 parent 573e68d commit ddb0214
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ await client.Connect();
```

Somewhere in your `Startup.cs`:
* Add `IClusterClient` (created in the above example) to `IServiceCollection`.
* Use `.AddSignalR()` on `IServiceCollection` (this is part of `Microsoft.AspNetCore.SignalR` nuget package).
* Use `AddOrleans()` on `.AddSignalR()`.

Expand All @@ -84,6 +85,7 @@ public void ConfigureServices(IServiceCollection services)
{
...
services
.AddSingleton<IClusterClient>(client);
.AddSignalR()
.AddOrleans();
...
Expand Down

0 comments on commit ddb0214

Please sign in to comment.