Skip to content

Commit

Permalink
Merge pull request #25 from Azure-Samples/seesharprun-patch-1
Browse files Browse the repository at this point in the history
Update CosmosDbService.cs
  • Loading branch information
seesharprun committed Jan 8, 2024
2 parents 3f8f791 + 21ba881 commit 1c9d534
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/web/Services/CosmosDbService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ internal interface ICosmosDbService

internal sealed class CosmosDbService : ICosmosDbService
{
private readonly CosmosClient _client;
private readonly CosmosClient client;

public CosmosDbService(CosmosClient client)
{
this._client = client;
this.client = client;
}

public string GetEndpoint() => $"{this._client.Endpoint}";
public string GetEndpoint() => $"{client.Endpoint}";

public async Task RunDemoAsync(Func<string, Task> writeOutputAync)
{
// <get_database>
Database database = this._client.GetDatabase("cosmicworks");
Database database = client.GetDatabase("cosmicworks");
// </get_database>
database = await database.ReadAsync();
await writeOutputAync($"Get database:\t{database.Id}");
Expand Down Expand Up @@ -120,4 +120,4 @@ public async Task RunDemoAsync(Func<string, Task> writeOutputAync)
await writeOutputAync($"Request charge:\t{requestCharge:0.00}");
}
}
}
}

0 comments on commit 1c9d534

Please sign in to comment.