-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refinement and reorganization of components.
- Loading branch information
1 parent
d6002ab
commit 1ee4142
Showing
7 changed files
with
62 additions
and
34 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
Application/EdFi.Ods.Features.IdentityManagement/Models/IIdentityServiceWithDefaultModels.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// Licensed to the Ed-Fi Alliance under one or more agreements. | ||
// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. | ||
// See the LICENSE and NOTICES files in the project root for more information. | ||
|
||
namespace EdFi.Ods.Features.IdentityManagement.Models; | ||
|
||
/// <summary> | ||
/// Defines an interface that closes the generic types of the <see cref="IIdentityService{TCreateRequest,TSearchRequest,TSearchResponse,TIdentityResponse}" /> | ||
/// with the default Identities request/response models. | ||
/// </summary> | ||
public interface IIdentityServiceWithDefaultModels | ||
: IIdentityService<IdentityCreateRequest, IdentitySearchRequest, IdentitySearchResponse<IdentityResponse>, | ||
IdentityResponse> { }; |
13 changes: 13 additions & 0 deletions
13
...ion/EdFi.Ods.Features.IdentityManagement/Models/IIdentityServiceWithDefaultModelsAsync.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// Licensed to the Ed-Fi Alliance under one or more agreements. | ||
// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. | ||
// See the LICENSE and NOTICES files in the project root for more information. | ||
|
||
namespace EdFi.Ods.Features.IdentityManagement.Models; | ||
|
||
/// <summary> | ||
/// Defines an interface that closes the generic types of the <see cref="IIdentityServiceAsync{TSearchRequest,TSearchResponse,TIdentityResponse}" /> | ||
/// with the default Identities request/response models. | ||
/// </summary> | ||
public interface IIdentityServiceWithDefaultModelsAsync | ||
: IIdentityServiceAsync<IdentitySearchRequest, IdentitySearchResponse<IdentityResponse>, IdentityResponse> { }; |
File renamed without changes.
28 changes: 28 additions & 0 deletions
28
Application/EdFi.Ods.Features/IdentityManagement/IdentitiesController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// Licensed to the Ed-Fi Alliance under one or more agreements. | ||
// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. | ||
// See the LICENSE and NOTICES files in the project root for more information. | ||
|
||
using EdFi.Ods.Features.Controllers; | ||
using EdFi.Ods.Features.IdentityManagement.Models; | ||
|
||
namespace EdFi.Ods.Features.IdentityManagement; | ||
|
||
/// <summary> | ||
/// Closes the Identities base controller around the default request/response model types to enable ASP.NET to find | ||
/// and instantiate it. | ||
/// </summary> | ||
/// <remarks>You can extend the default Identities request/response models by registering replacement services | ||
/// with different (derived) model types, and then providing a new controller that derives from the <see cref="IdentitiesControllerBase{TCreateRequest,TSearchRequest,TSearchResponse,TIdentityResponse}"/> | ||
/// class and closes the generic type definition so that ASP.NET will locate and instantiate it (instead of the | ||
/// out-of-the-box <see cref="IdentitiesController" />. | ||
/// </remarks> | ||
public class IdentitiesController | ||
: IdentitiesControllerBase<IdentityCreateRequest, IdentitySearchRequest, IdentitySearchResponse<IdentityResponse>, | ||
IdentityResponse> | ||
{ | ||
public IdentitiesController( | ||
IIdentityServiceWithDefaultModels identitySubsystem, | ||
IIdentityServiceWithDefaultModelsAsync identitySubsystemAsync) | ||
: base(identitySubsystem, identitySubsystemAsync) { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
Application/EdFi.Ods.Features/IdentityManagement/UnimplementedIdentitiesController.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters