File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/Umbraco.Commerce.Checkout Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change
1
+ using System . Threading . Tasks ;
1
2
using Umbraco . Commerce . Checkout . Pipeline ;
2
3
using Umbraco . Commerce . Common . Pipelines ;
3
4
using Umbraco . Commerce . Core . Models ;
@@ -7,7 +8,7 @@ namespace Umbraco.Commerce.Checkout.Services
7
8
{
8
9
public class InstallService
9
10
{
10
- public void Install ( int siteRootNodeId , StoreReadOnly store )
11
+ public async Task InstallAsync ( int siteRootNodeId , StoreReadOnly store )
11
12
{
12
13
PipelineResult < InstallPipelineContext > result = PipelineRunner . Invoke < InstallPipeline , InstallPipelineContext > ( new InstallPipelineContext
13
14
{
Original file line number Diff line number Diff line change 1
1
using System ;
2
+ using System . Threading . Tasks ;
2
3
using Asp . Versioning ;
3
4
using Microsoft . AspNetCore . Mvc ;
4
5
using Umbraco . Cms . Api . Management . Routing ;
@@ -29,7 +30,7 @@ public UmbracoCommerceCheckoutApiController(
29
30
}
30
31
31
32
[ HttpGet ( "install" ) ]
32
- public object InstallUmbracoCommerceCheckout ( Guid ? siteRootNodeId )
33
+ public async Task < object > InstallUmbracoCommerceCheckout ( Guid ? siteRootNodeId )
33
34
{
34
35
ArgumentNullException . ThrowIfNull ( siteRootNodeId ) ;
35
36
@@ -53,7 +54,7 @@ public object InstallUmbracoCommerceCheckout(Guid? siteRootNodeId)
53
54
}
54
55
55
56
// Perform the install
56
- new InstallService ( ) . Install ( siteRootNode . Id , store ) ;
57
+ await new InstallService ( ) . InstallAsync ( siteRootNode . Id , store ) . ConfigureAwait ( false ) ;
57
58
58
59
// Return success
59
60
return new { success = true } ;
You can’t perform that action at this time.
0 commit comments