Skip to content

Instantly share code, notes, and snippets.

View wmeints's full-sized avatar

Willem Meints wmeints

View GitHub Profile
mpg cylinders displacement horsepower weight acceleration model year origin car name
18 8 307 130 3504 12 70 1 chevrolet chevelle malibu
15 8 350 165 3693 11.5 70 1 buick skylark 320
18 8 318 150 3436 11 70 1 plymouth satellite
16 8 304 150 3433 12 70 1 amc rebel sst
17 8 302 140 3449 10.5 70 1 ford torino
15 8 429 198 4341 10 70 1 ford galaxie 500
14 8 454 220 4354 9 70 1 chevrolet impala
14 8 440 215 4312 8.5 70 1 plymouth fury iii
14 8 455 225 4425 10 70 1 pontiac catalina
<CascadingValue Value="@ModalDialogService">
@ChildContent
<div class="modal @ModalClasses" tabindex="-1" role="dialog" style="@ModalStyles">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">
@Title
</h5>
<button class="close" type="button" @onclick="HideDialog"></button>
@wmeints
wmeints / GraphClient.cs
Last active July 7, 2020 13:11
A wrapper around the Gremlin.NET client to automatically log query costs and retry failed requests.
/// <summary>
/// Wrapper class for <see cref="IGremlinClient"/> that automatically retries send operations and logs
/// information about the CosmosDB dependency in Application Insights.
/// </summary>
public class GraphClient : IGraphClient
{
private readonly TelemetryClient _telemetryClient;
private readonly IGremlinClient _client;
private readonly IOptions<GremlinSettings> _gremlinSettings;
private readonly ILogger<GraphClient> _logger;

Technical architecture

This section covers the technical layout of the application and how to work with various parts of the code.

Working with use-cases

This project follows vertical slice architecture. Each use-case gets its own class under the feature folder. The associated request and response objects are contained as subclass within the use-case class. The use-case class has the name of the use case, for example: