Skip to content

Commit 9914eac

Browse files
Merge branch 'release' into feature/value-object
2 parents 85ecd67 + 6e2287a commit 9914eac

2 files changed

Lines changed: 19 additions & 19 deletions

File tree

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<!--GraphQL-->
1919
<GraphQL_Server_Version>5.0.1</GraphQL_Server_Version>
2020
<GraphQL_Client_Version>3.2.3</GraphQL_Client_Version>
21-
<GraphQL_Version>4.2.0</GraphQL_Version>
21+
<GraphQL_Version>4.3.0</GraphQL_Version>
2222

2323
<!--AutoMapper-->
2424
<AutoMapper_DependencyInjection_Version>8.1.1</AutoMapper_DependencyInjection_Version>
@@ -31,7 +31,7 @@
3131
<HealthChecks_Version>5.0.1</HealthChecks_Version>
3232

3333
<!--Others-->
34-
<FluentValidation_Version>10.0.2</FluentValidation_Version>
34+
<FluentValidation_Version>10.0.4</FluentValidation_Version>
3535
<Scrutor_Version>3.3.0</Scrutor_Version>
3636

3737
</PropertyGroup>

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -171,22 +171,22 @@ networks:
171171
```
172172
### GraphQL Playground
173173
174-
By default **Playground** respond at `http://localhost:5000/ui/playground` but is possible configure the host and many others details in [`../....WebAPI/Graphs/Extensions/DependencyInjection/ApplicationBuilderExtensions.cs`](./src/Dotnet6.GraphQL4.Store.WebAPI/Graphs/Extensions/DependencyInjection/ApplicationBuilderExtensions.cs)
174+
By default **Playground** respond at `http://localhost:5000/ui/playground` but is possible configure the host and many others details in [`../DependencyInjection/Extensions/ApplicationBuilderExtensions.cs`](./src/Dotnet6.GraphQL4.Store.WebAPI/DependencyInjection/Extensions/ApplicationBuilderExtensions.cs)
175175

176176
```c#
177177
app.UseGraphQLPlayground(
178-
new GraphQLPlaygroundOptions
179-
{
180-
Path = "/ui/playground",
181-
BetaUpdates = true,
182-
RequestCredentials = RequestCredentials.Omit,
183-
HideTracingResponse = false,
184-
EditorCursorShape = EditorCursorShape.Line,
185-
EditorTheme = EditorTheme.Dark,
186-
EditorFontSize = 14,
187-
EditorReuseHeaders = true,
188-
EditorFontFamily = "JetBrains Mono"
189-
});
178+
options: new()
179+
{
180+
BetaUpdates = true,
181+
RequestCredentials = RequestCredentials.Omit,
182+
HideTracingResponse = false,
183+
EditorCursorShape = EditorCursorShape.Line,
184+
EditorTheme = EditorTheme.Dark,
185+
EditorFontSize = 14,
186+
EditorReuseHeaders = true,
187+
EditorFontFamily = "JetBrains Mono"
188+
},
189+
path: "/ui/playground");
190190
```
191191

192192
### Health checks
@@ -248,8 +248,8 @@ The implementation of the `UnitOfWork` gives support to the `ExecutionStrategy`
248248
```c#
249249
public Task<Review> AddReviewAsync(ReviewModel reviewModel, CancellationToken cancellationToken)
250250
{
251-
return UnitOfWork.ExecuteInTransactionAsync(
252-
operationAsync: async ct => // Func<CancellationToken, Task<TResult>>
251+
return UnitOfWork.ExecuteInTransactionScopeAsync(
252+
operationAsync: async ct =>
253253
{
254254
var product = await Repository.GetByIdAsync(
255255
id: reviewModel.ProductId,
@@ -262,8 +262,8 @@ public Task<Review> AddReviewAsync(ReviewModel reviewModel, CancellationToken ca
262262
await OnEditAsync(product, ct);
263263
return review;
264264
},
265-
condition: _ => NotificationContext.AllValidAsync, // Func<CancellationToken, Task<bool>>
266-
cancellationToken: cancellationToken);
265+
condition: _ => NotificationContext.AllValidAsync,
266+
cancellationToken: cancellationToken);
267267
}
268268
```
269269

0 commit comments

Comments
 (0)