MiddleTierClientBuilder<TDbContext>.UseServer(String) Method
Specifies the base Middle Tier server address.
Namespace: DevExpress.ExpressApp.ApplicationBuilder
Assembly: DevExpress.EntityFrameworkCore.Security.v25.1.dll
NuGet Package: DevExpress.ExpressApp.EFCore
Declaration
Parameters
Name | Type | Description |
---|---|---|
baseAddress | String | The server web address (URL). |
Returns
Type | Description |
---|---|
MiddleTierClientBuilder<TDbContext> | The builder that allows you to further configure the Middle Tier client. |
Remarks
The following code sample creates a new client, connects it to the remote Middle Tier server at http://localhost:5000/, and uses authentication with the specified login and password.
var builder = new MiddleTierClientBuilder<MainDemoDbContext>()
.UseServer("http://localhost:5000/")
.UsePasswordAuthentication("user", "password");
IMiddleTierClient<MainDemoDbContext> client = builder.Build();
See Also