@@ -42,7 +42,7 @@ public AdminApiHandler(KepwareApiClient kepwareApiClient, ILogger<AdminApiHandle
4242 /// <returns>The current <see cref="AdminSettings"/> or null if retrieval fails.</returns>
4343 public Task < AdminSettings ? > GetAdminSettingsAsync ( CancellationToken cancellationToken = default )
4444 {
45- return m_kepwareApiClient . GenericConfig . LoadEntityAsync < AdminSettings > ( name : null , cancellationToken ) ;
45+ return m_kepwareApiClient . GenericConfig . LoadEntityAsync < AdminSettings > ( name : null , cancellationToken : cancellationToken ) ;
4646 }
4747
4848 /// <summary>
@@ -117,7 +117,7 @@ public async Task<bool> SetAdminSettingsAsync(AdminSettings settings, Cancellati
117117 /// <returns>The <see cref="UaEndpoint"/> configuration, or null if not found.</returns>
118118 public Task < UaEndpoint ? > GetUaEndpointAsync ( string name , CancellationToken cancellationToken = default )
119119 {
120- return m_kepwareApiClient . GenericConfig . LoadEntityAsync < UaEndpoint > ( name , cancellationToken ) ;
120+ return m_kepwareApiClient . GenericConfig . LoadEntityAsync < UaEndpoint > ( name , cancellationToken : cancellationToken ) ;
121121 }
122122
123123 /// <summary>
@@ -135,7 +135,7 @@ public async Task<bool> CreateOrUpdateUaEndpointAsync(UaEndpoint endpoint, Cance
135135 try
136136 {
137137 var endpointUrl = EndpointResolver . ResolveEndpoint < UaEndpoint > ( [ endpoint . Name ] ) ;
138- var currentEndpoint = await m_kepwareApiClient . GenericConfig . LoadEntityByEndpointAsync < UaEndpoint > ( endpointUrl , cancellationToken ) ;
138+ var currentEndpoint = await m_kepwareApiClient . GenericConfig . LoadEntityByEndpointAsync < UaEndpoint > ( endpointUrl , cancellationToken : cancellationToken ) ;
139139
140140 if ( currentEndpoint == null )
141141 {
@@ -162,7 +162,7 @@ public async Task<bool> CreateOrUpdateUaEndpointAsync(UaEndpoint endpoint, Cance
162162 /// <param name="cancellationToken">A token that can be used to request cancellation of the operation.</param>
163163 /// <returns>True if the endpoint was successfully deleted; otherwise, false.</returns>
164164 public Task < bool > DeleteUaEndpointAsync ( string name , CancellationToken cancellationToken = default )
165- => m_kepwareApiClient . GenericConfig . DeleteItemAsync < UaEndpoint > ( name , cancellationToken ) ;
165+ => m_kepwareApiClient . GenericConfig . DeleteItemAsync < UaEndpoint > ( name , cancellationToken : cancellationToken ) ;
166166
167167 #endregion
168168
@@ -186,7 +186,7 @@ public Task<bool> DeleteUaEndpointAsync(string name, CancellationToken cancellat
186186 /// <returns>The <see cref="ServerUserGroup"/> configuration, or null if not found.</returns>
187187 public Task < ServerUserGroup ? > GetServerUserGroupAsync ( string name , CancellationToken cancellationToken = default )
188188 {
189- return m_kepwareApiClient . GenericConfig . LoadEntityAsync < ServerUserGroup > ( name , cancellationToken ) ;
189+ return m_kepwareApiClient . GenericConfig . LoadEntityAsync < ServerUserGroup > ( name , cancellationToken : cancellationToken ) ;
190190 }
191191
192192 /// <summary>
@@ -204,7 +204,7 @@ public async Task<bool> CreateOrUpdateServerUserGroupAsync(ServerUserGroup userG
204204 try
205205 {
206206 var endpointUrl = EndpointResolver . ResolveEndpoint < ServerUserGroup > ( [ userGroup . Name ] ) ;
207- var currentGroup = await m_kepwareApiClient . GenericConfig . LoadEntityByEndpointAsync < ServerUserGroup > ( endpointUrl , cancellationToken ) ;
207+ var currentGroup = await m_kepwareApiClient . GenericConfig . LoadEntityByEndpointAsync < ServerUserGroup > ( endpointUrl , cancellationToken : cancellationToken ) ;
208208
209209 if ( currentGroup == null )
210210 {
@@ -231,7 +231,7 @@ public async Task<bool> CreateOrUpdateServerUserGroupAsync(ServerUserGroup userG
231231 /// <param name="cancellationToken">A token that can be used to request cancellation of the operation.</param>
232232 /// <returns>True if the group was successfully deleted; otherwise, false.</returns>
233233 public Task < bool > DeleteServerUserGroupAsync ( string name , CancellationToken cancellationToken = default )
234- => m_kepwareApiClient . GenericConfig . DeleteItemAsync < ServerUserGroup > ( name , cancellationToken ) ;
234+ => m_kepwareApiClient . GenericConfig . DeleteItemAsync < ServerUserGroup > ( name , cancellationToken : cancellationToken ) ;
235235
236236 #endregion
237237
@@ -254,7 +254,7 @@ public Task<bool> DeleteServerUserGroupAsync(string name, CancellationToken canc
254254 /// <returns>The <see cref="ServerUser"/> configuration, or null if not found.</returns>
255255 public Task < ServerUser ? > GetServerUserAsync ( string name , CancellationToken cancellationToken = default )
256256 {
257- return m_kepwareApiClient . GenericConfig . LoadEntityAsync < ServerUser > ( name , cancellationToken ) ;
257+ return m_kepwareApiClient . GenericConfig . LoadEntityAsync < ServerUser > ( name , cancellationToken : cancellationToken ) ;
258258 }
259259
260260 /// <summary>
@@ -272,7 +272,7 @@ public async Task<bool> CreateOrUpdateServerUserAsync(ServerUser user, Cancellat
272272 try
273273 {
274274 var endpointUrl = EndpointResolver . ResolveEndpoint < ServerUser > ( [ user . Name ] ) ;
275- var currentUser = await m_kepwareApiClient . GenericConfig . LoadEntityByEndpointAsync < ServerUser > ( endpointUrl , cancellationToken ) ;
275+ var currentUser = await m_kepwareApiClient . GenericConfig . LoadEntityByEndpointAsync < ServerUser > ( endpointUrl , cancellationToken : cancellationToken ) ;
276276
277277 if ( currentUser == null )
278278 {
@@ -309,7 +309,7 @@ public async Task<bool> CreateOrUpdateServerUserAsync(ServerUser user, Cancellat
309309 /// <param name="cancellationToken">A token that can be used to request cancellation of the operation.</param>
310310 /// <returns>True if the user was successfully deleted; otherwise, false.</returns>
311311 public Task < bool > DeleteServerUserAsync ( string name , CancellationToken cancellationToken = default )
312- => m_kepwareApiClient . GenericConfig . DeleteItemAsync < ServerUser > ( name , cancellationToken ) ;
312+ => m_kepwareApiClient . GenericConfig . DeleteItemAsync < ServerUser > ( name , cancellationToken : cancellationToken ) ;
313313
314314 #endregion
315315
@@ -345,7 +345,7 @@ public Task<bool> DeleteServerUserAsync(string name, CancellationToken cancellat
345345 public Task < ProjectPermission ? > GetProjectPermissionAsync ( string serverUserGroupName , ProjectPermissionName projectPermissionName , CancellationToken cancellationToken = default )
346346 {
347347 var endpoint = EndpointResolver . ResolveEndpoint < ProjectPermission > ( [ serverUserGroupName , projectPermissionName ] ) ;
348- return m_kepwareApiClient . GenericConfig . LoadEntityByEndpointAsync < ProjectPermission > ( endpoint , cancellationToken ) ;
348+ return m_kepwareApiClient . GenericConfig . LoadEntityByEndpointAsync < ProjectPermission > ( endpoint , cancellationToken : cancellationToken ) ;
349349 }
350350
351351 /// <summary>
@@ -371,7 +371,7 @@ public async Task<bool> UpdateProjectPermissionAsync(string serverUserGroupName,
371371 try
372372 {
373373 var endpointUrl = EndpointResolver . ResolveEndpoint < ProjectPermission > ( [ serverUserGroupName , projectPermission . Name ] ) ;
374- var existingPermission = await m_kepwareApiClient . GenericConfig . LoadEntityByEndpointAsync < ProjectPermission > ( endpointUrl , cancellationToken ) ;
374+ var existingPermission = await m_kepwareApiClient . GenericConfig . LoadEntityByEndpointAsync < ProjectPermission > ( endpointUrl , cancellationToken : cancellationToken ) ;
375375
376376 if ( existingPermission == null )
377377 {
0 commit comments