Skip to content

Commit

Permalink
docs(configuration): update sample configuration (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
claylaut authored and galvesribeiro committed Mar 21, 2018
1 parent 3a0875e commit 2de13c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
5 changes: 2 additions & 3 deletions README.Nuget.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@ var client = new ClientBuilder()
```

Somewhere in your `Startup.cs`:
* Use `.UseOrleans()` on `ISignalRBuilder`.
* Use `.AddSignalR()` on `IServiceCollection` (this is part of `Microsoft.AspNetCore.SignalR` nuget package).

***Example***
```cs
public void ConfigureServices(IServiceCollection services)
{
...
services.AddSignalR()
.UseOrleans();
services.AddSignalR();
...
}
```
Expand Down
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ int gatewayPort = 30000;
var siloAddress = IPAddress.Loopback;

var silo = new SiloHostBuilder()
.Configure(options => options.ClusterId = "test-cluster")
.UseDevelopmentClustering(options => options.PrimarySiloEndpoint = new IPEndPoint(siloAddress, siloPort))
.ConfigureEndpoints(siloAddress, siloPort, gatewayPort)
.UseSignalR()
.Build();
await silo.StartAsync();
Expand All @@ -58,8 +55,6 @@ Now your SignalR application needs to connect to the Orleans Cluster by using an
***Example***
```cs
var client = new ClientBuilder()
.ConfigureCluster(options => options.ClusterId = "test-cluster")
.UseStaticClustering(options => options.Gateways.Add(new IPEndPoint(siloAddress, gatewayPort).ToGatewayUri()))
.UseSignalR()
.Build();
await client.Connect();
Expand All @@ -73,8 +68,7 @@ Somewhere in your `Startup.cs`:
public void ConfigureServices(IServiceCollection services)
{
...
services.AddSignalR()
.AddOrleans();
services.AddSignalR();
...
}
```
Expand Down

0 comments on commit 2de13c7

Please sign in to comment.