@@ -45,7 +45,7 @@ public CachedTopicMappingService(ITopicMappingService topicMappingService) {
4545 | METHOD: MAP
4646 \-------------------------------------------------------------------------------------------------------------------------*/
4747 /// <inheritdoc />
48- public async Task < object ? > MapAsync ( Topic ? topic , AssociationTypes relationships = AssociationTypes . All ) {
48+ public async Task < object ? > MapAsync ( Topic ? topic , AssociationTypes associations = AssociationTypes . All ) {
4949
5050 /*------------------------------------------------------------------------------------------------------------------------
5151 | Handle null source
@@ -55,15 +55,15 @@ public CachedTopicMappingService(ITopicMappingService topicMappingService) {
5555 /*------------------------------------------------------------------------------------------------------------------------
5656 | Ensure cache is populated
5757 \-----------------------------------------------------------------------------------------------------------------------*/
58- var cacheKey = ( topic . Id , ( Type ? ) null , relationships ) ;
58+ var cacheKey = ( topic . Id , ( Type ? ) null , associations ) ;
5959 if ( _cache . TryGetValue ( cacheKey , out var viewModel ) ) {
6060 return viewModel ;
6161 }
6262
6363 /*------------------------------------------------------------------------------------------------------------------------
6464 | Process result
6565 \-----------------------------------------------------------------------------------------------------------------------*/
66- viewModel = await _topicMappingService . MapAsync ( topic , relationships ) . ConfigureAwait ( false ) ;
66+ viewModel = await _topicMappingService . MapAsync ( topic , associations ) . ConfigureAwait ( false ) ;
6767
6868 /*------------------------------------------------------------------------------------------------------------------------
6969 | Return (cached) result
@@ -83,7 +83,7 @@ public CachedTopicMappingService(ITopicMappingService topicMappingService) {
8383 | METHOD: MAP (T)
8484 \-------------------------------------------------------------------------------------------------------------------------*/
8585 /// <inheritdoc />
86- public async Task < T ? > MapAsync < T > ( Topic ? topic , AssociationTypes relationships = AssociationTypes . All ) where T : class , new ( ) {
86+ public async Task < T ? > MapAsync < T > ( Topic ? topic , AssociationTypes associations = AssociationTypes . All ) where T : class , new ( ) {
8787
8888 /*------------------------------------------------------------------------------------------------------------------------
8989 | Handle null source
@@ -93,15 +93,15 @@ public CachedTopicMappingService(ITopicMappingService topicMappingService) {
9393 /*------------------------------------------------------------------------------------------------------------------------
9494 | Ensure cache is populated
9595 \-----------------------------------------------------------------------------------------------------------------------*/
96- var cacheKey = ( topic . Id , typeof ( T ) , relationships ) ;
96+ var cacheKey = ( topic . Id , typeof ( T ) , associations ) ;
9797 if ( _cache . TryGetValue ( cacheKey , out var viewModel ) ) {
9898 return ( T ) viewModel ;
9999 }
100100
101101 /*------------------------------------------------------------------------------------------------------------------------
102102 | Process result
103103 \-----------------------------------------------------------------------------------------------------------------------*/
104- viewModel = await _topicMappingService . MapAsync < T > ( topic , relationships ) . ConfigureAwait ( false ) ;
104+ viewModel = await _topicMappingService . MapAsync < T > ( topic , associations ) . ConfigureAwait ( false ) ;
105105
106106 /*------------------------------------------------------------------------------------------------------------------------
107107 | Return (cached) result
@@ -121,7 +121,7 @@ public CachedTopicMappingService(ITopicMappingService topicMappingService) {
121121 | METHOD: MAP (OBJECTS)
122122 \-------------------------------------------------------------------------------------------------------------------------*/
123123 /// <inheritdoc />
124- public async Task < object ? > MapAsync ( Topic ? topic , object target , AssociationTypes relationships = AssociationTypes . All ) {
124+ public async Task < object ? > MapAsync ( Topic ? topic , object target , AssociationTypes associations = AssociationTypes . All ) {
125125
126126 /*------------------------------------------------------------------------------------------------------------------------
127127 | Handle null source
@@ -136,15 +136,15 @@ public CachedTopicMappingService(ITopicMappingService topicMappingService) {
136136 /*------------------------------------------------------------------------------------------------------------------------
137137 | Ensure cache is populated
138138 \-----------------------------------------------------------------------------------------------------------------------*/
139- var cacheKey = ( topic . Id , target . GetType ( ) , relationships ) ;
139+ var cacheKey = ( topic . Id , target . GetType ( ) , associations ) ;
140140 if ( _cache . TryGetValue ( cacheKey , out var viewModel ) ) {
141141 return viewModel ;
142142 }
143143
144144 /*------------------------------------------------------------------------------------------------------------------------
145145 | Process result
146146 \-----------------------------------------------------------------------------------------------------------------------*/
147- viewModel = await _topicMappingService . MapAsync ( topic , relationships ) . ConfigureAwait ( false ) ;
147+ viewModel = await _topicMappingService . MapAsync ( topic , associations ) . ConfigureAwait ( false ) ;
148148
149149 /*------------------------------------------------------------------------------------------------------------------------
150150 | Return (cached) result
0 commit comments