@@ -15,11 +15,11 @@ public static async Task<IState> GetAsync<Model>(
15
15
where Model : class
16
16
{
17
17
var context = new AsyncOperationContext ( client , cancellationToken ) ;
18
- await context . AddStateAsync ( config ) ;
18
+ await context . AddStateAsyncResourceBase ( config ) ;
19
19
return context . Result ;
20
20
}
21
21
22
- static Task AddStateAsync ( this AsyncOperationContext context , IResourceBaseConfig config )
22
+ static Task AddStateAsyncResourceBase ( this AsyncOperationContext context , IResourceBaseConfig config )
23
23
=> config . Accept ( new AddStateAsyncVisitor ( ) , context ) ;
24
24
25
25
static async Task AddStateAsync < Model > ( this AsyncOperationContext context , ResourceConfig < Model > config )
@@ -45,18 +45,18 @@ static async Task AddStateAsync<Model>(this AsyncOperationContext context, Resou
45
45
}
46
46
if ( info == null )
47
47
{
48
- var tasks = config . Dependencies . Select ( d => context . AddStateAsync ( d ) ) ;
48
+ var tasks = config . Dependencies . Select ( d => context . AddStateAsyncResourceBase ( d ) ) ;
49
49
await Task . WhenAll ( tasks ) ;
50
50
return null ;
51
51
}
52
52
return info ;
53
53
} ) ;
54
54
55
55
static Task AddStateAsync < Model , ParentModel > (
56
- AsyncOperationContext context , NestedResourceConfig < Model , ParentModel > config )
56
+ this AsyncOperationContext context , NestedResourceConfig < Model , ParentModel > config )
57
57
where Model : class
58
58
where ParentModel : class
59
- => context . AddStateAsync ( config . Parent ) ;
59
+ => context . AddStateAsyncResourceBase ( config . Parent ) ;
60
60
61
61
sealed class AddStateAsyncVisitor : IResourceBaseConfigVisitor < AsyncOperationContext , Task >
62
62
{
0 commit comments