Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
Click here >
Docs Menu
Docs Home
/ /
Servicios de aplicaciones

Connect to an Atlas App Services Backend - .NET SDK

The App client is the interface to the App Services backend. It provides access to the authentication functionality, functions, and sync management.

Pase el ID de la aplicación para su aplicación, que puede encuéntralo en la interfaz de usuario de Realm.

var myRealmAppId = "<your_app_id>";
var app = App.Create(myRealmAppId);

For most use cases, you only need your application's App ID to connect to App Services. For granular control of your app connection, such as custom timeouts for connections and the log level, you can optionally pass an AppConfiguration object to the App.Create() method. The following example sets the LogLevel and the request timeout:

var appConfig = new AppConfiguration(myRealmAppId)
{
DefaultRequestTimeout = TimeSpan.FromMilliseconds(1500)
};
app = App.Create(appConfig);

Puedes crear varias instancias de un cliente de aplicación para conectarte a múltiples aplicaciones. Todas las instancias de cliente de aplicación que comparten el mismo ID de la aplicación utilizan la misma conexión subyacente.

Volver

Servicios de aplicaciones

En esta página