CreateDatabaseUri
This commit is contained in:
Родитель
8732dafa9d
Коммит
841b7215d3
|
@ -75,7 +75,7 @@ namespace Microsoft.Azure.IoTSolutions.AsaManager.Services.Storage
|
|||
using (var client = new DocumentClient(uri, authKey, ConnectionPolicy.Default, consistencyLevel))
|
||||
{
|
||||
await client.CreateDocumentCollectionIfNotExistsAsync(
|
||||
$"/dbs/{database}",
|
||||
UriFactory.CreateDatabaseUri(database),
|
||||
new DocumentCollection { Id = collection },
|
||||
new RequestOptions { OfferThroughput = RUs });
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ namespace Microsoft.Azure.IoTSolutions.AsaManager.Services.Storage
|
|||
{
|
||||
using (var client = new DocumentClient(uri, authKey, ConnectionPolicy.Default))
|
||||
{
|
||||
await client.ReadDatabaseAsync(database);
|
||||
await client.ReadDatabaseAsync(UriFactory.CreateDatabaseUri(database));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ namespace Microsoft.Azure.IoTSolutions.UIConfig.Services
|
|||
// Check access to Auth
|
||||
var authResult = await this.PingServiceAsync(
|
||||
authName,
|
||||
this.servicesConfig.DeviceSimulationApiUrl);
|
||||
this.servicesConfig.UserManagementApiUrl);
|
||||
SetServiceStatus(authName, authResult, result, errors);
|
||||
|
||||
// Add properties
|
||||
|
|
Загрузка…
Ссылка в новой задаче