Skip to content

Commit 2b5338c

Browse files
committed
upd
1 parent a2a3ebe commit 2b5338c

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

CS/XPO/Readme.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,21 @@ Follow the steps below to add this functionality to your project:
4949
});
5050
```
5151

52+
* **Applications with Middle Tier Security without multi-tenancy** (`YourSolutionName.MiddleTier\Startup.cs`):
53+
54+
```cs{4-10}
55+
public class Startup
56+
//...
57+
public void ConfigureServices(IServiceCollection services) {
58+
services.AddScoped<SequenceGeneratorProvider>();
59+
services.Configure<SequenceGeneratorOptions>(opt => {
60+
opt.GetConnectionString = (serviceProvider) => {
61+
var options = serviceProvider.GetRequiredService<IOptions<DataServerSecurityOptions>>();
62+
return options.Value.ConnectionString;
63+
};
64+
});
65+
```
66+
5267
* **ASP.NET Core Blazor multi-tenant applications** (`YourSolutionName\YourSolutionName.Blazor.Server\Startup.cs`)
5368

5469
```cs{7-12}
@@ -83,7 +98,7 @@ Follow the steps below to add this functionality to your project:
8398
});
8499
```
85100

86-
* **Applications with Middle Tier Security** (`YourSolutionName.MiddleTier\Startup.cs`):
101+
* **Multi-tenant applications with Middle Tier Security** (`YourSolutionName.MiddleTier\Startup.cs`):
87102

88103
```cs{4-10}
89104
public class Startup

0 commit comments

Comments
 (0)