-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[add] controller version 1 types
- Loading branch information
Showing
5 changed files
with
62 additions
and
24 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/Simplify.Web/Controllers/V1/Metadata/Controller1MetadataFactory.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,16 @@ | ||
using System; | ||
using Simplify.Web.Meta.Controllers; | ||
using Simplify.Web.Meta.Controllers.Factory; | ||
using Simplify.Web.System; | ||
|
||
namespace Simplify.Web.Controllers.V1.Metadata; | ||
|
||
public class Controller1MetadataFactory : IControllerMetadataFactory | ||
{ | ||
public bool CanHandle(Type controllerType) => controllerType.IsTypeDerivedFrom(Controller1Types.Types); | ||
|
||
public IControllerMetadata Create(Type controllerType) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/Simplify.Web/Controllers/V1/Metadata/Controller1Types.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 @@ | ||
using System; | ||
|
||
namespace Simplify.Web.Controllers.V1.Metadata; | ||
|
||
public static class Controller1Types | ||
{ | ||
public static Type[] Types => | ||
[ | ||
typeof(Controller), | ||
typeof(AsyncController), | ||
typeof(Controller<>), | ||
typeof(AsyncController<>), | ||
]; | ||
} |
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
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
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