File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 10
10
/// </summary>
11
11
static partial class TypeExtensions
12
12
{
13
- static readonly TypeInfo ODataController = typeof ( ODataController ) . GetTypeInfo ( ) ;
13
+ static readonly Type ODataRoutingAttributeType = typeof ( ODataRoutingAttribute ) ;
14
14
static readonly TypeInfo MetadataController = typeof ( MetadataController ) . GetTypeInfo ( ) ;
15
15
static readonly Type Delta = typeof ( IDelta ) ;
16
16
static readonly Type ODataPath = typeof ( ODataPath ) ;
17
17
static readonly Type ODataQueryOptions = typeof ( ODataQueryOptions ) ;
18
18
static readonly Type ODataActionParameters = typeof ( ODataActionParameters ) ;
19
19
static readonly Type ODataParameterHelper = typeof ( ODataParameterHelper ) ;
20
20
21
- internal static bool IsODataController ( this Type controllerType ) => ODataController . IsAssignableFrom ( controllerType ) ;
21
+ internal static bool IsODataController ( this Type controllerType ) => Attribute . IsDefined ( controllerType , ODataRoutingAttributeType ) ;
22
22
23
- internal static bool IsODataController ( this TypeInfo controllerType ) => ODataController . IsAssignableFrom ( controllerType ) ;
23
+ internal static bool IsODataController ( this TypeInfo controllerType ) => Attribute . IsDefined ( controllerType , ODataRoutingAttributeType ) ;
24
24
25
25
internal static bool IsMetadataController ( this TypeInfo controllerType ) => MetadataController . IsAssignableFrom ( controllerType ) ;
26
26
You can’t perform that action at this time.
0 commit comments