Skip to content

Commit f80e084

Browse files
committed
Consolidated all ITypeLookupServices into OnTopic.Lookup namespace
The root `OnTopic` namespace was getting cluttered with various `ITypeLookupService` implementations, including `CompositeTypeLookupService`, `DefaultTopicLookupService`, and `StaticTypeLookupService`. In addition, there was a somewhat arbitrary separation between the `OnTopic.Reflection` namespace, which housed a variety of `Dynamic*LookupService` implementations (e.g., `DynamicTopicViewModelLookupService`) due to the fact that they rely on reflection to lookup classes, instead of a static list; from a callers perspective, however, these are all lookup services, and are more alike than not. These have now all been consolidated into a new `OnTopic.Lookup` namespace.
1 parent 7e99f41 commit f80e084

15 files changed

+15
-10
lines changed

OnTopic.AspNetCore.Mvc.Host/SampleActivator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
using OnTopic.AspNetCore.Mvc.Host.Components;
1212
using OnTopic.Data.Caching;
1313
using OnTopic.Data.Sql;
14+
using OnTopic.Lookup;
1415
using OnTopic.Mapping;
1516
using OnTopic.Mapping.Hierarchical;
16-
using OnTopic.Reflection;
1717
using OnTopic.Repositories;
1818
using OnTopic.ViewModels;
1919

OnTopic.Tests/ITypeLookupServiceTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
\=============================================================================================================================*/
66
using System;
77
using Microsoft.VisualStudio.TestTools.UnitTesting;
8-
using OnTopic.Reflection;
8+
using OnTopic.Lookup;
99
using OnTopic.Tests.TestDoubles;
1010
using OnTopic.Tests.ViewModels;
1111
using OnTopic.ViewModels;

OnTopic.Tests/TestDoubles/FakeViewModelLookupService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
| Client Ignia, LLC
44
| Project Topics Library
55
\=============================================================================================================================*/
6+
using OnTopic.Lookup;
67
using OnTopic.Tests.ViewModels;
78
using OnTopic.Tests.ViewModels.Metadata;
89

OnTopic.Tests/TopicMappingServiceTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using OnTopic.Attributes;
1313
using OnTopic.Data.Caching;
1414
using OnTopic.Internal.Mapping;
15+
using OnTopic.Lookup;
1516
using OnTopic.Mapping;
1617
using OnTopic.Mapping.Annotations;
1718
using OnTopic.Metadata;

OnTopic.ViewModels/TopicViewModelLookupService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
\=============================================================================================================================*/
66
using System;
77
using System.Collections.Generic;
8+
using OnTopic.Lookup;
89

910
namespace OnTopic.ViewModels {
1011

OnTopic/CompositeTypeLookupService.cs renamed to OnTopic/Lookup/CompositeTypeLookupService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using System.Collections.Generic;
88
using System.Linq;
99

10-
namespace OnTopic {
10+
namespace OnTopic.Lookup {
1111

1212
/*============================================================================================================================
1313
| CLASS: COMPOSITE TYPE LOOKUP SERVICE

OnTopic/DefaultTopicLookupService.cs renamed to OnTopic/Lookup/DefaultTopicLookupService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using OnTopic.Metadata;
1010
using OnTopic.Metadata.AttributeTypes;
1111

12-
namespace OnTopic {
12+
namespace OnTopic.Lookup {
1313

1414
/*============================================================================================================================
1515
| CLASS: TYPE INDEX

OnTopic/Reflection/DynamicTopicBindingModelLookupService.cs renamed to OnTopic/Lookup/DynamicTopicBindingModelLookupService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System;
77
using OnTopic.Models;
88

9-
namespace OnTopic.Reflection {
9+
namespace OnTopic.Lookup {
1010

1111
/*============================================================================================================================
1212
| CLASS: DYNAMIC TOPIC BINDING MODEL LOOKUP SERVICE

OnTopic/Reflection/DynamicTopicLookupService.cs renamed to OnTopic/Lookup/DynamicTopicLookupService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
\=============================================================================================================================*/
66
using System;
77

8-
namespace OnTopic.Reflection {
8+
namespace OnTopic.Lookup {
99

1010
/*============================================================================================================================
1111
| CLASS: DYNAMIC TOPIC LOOKUP SERVICE

OnTopic/Reflection/DynamicTopicViewModelLookupService.cs renamed to OnTopic/Lookup/DynamicTopicViewModelLookupService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
\=============================================================================================================================*/
66
using System;
77

8-
namespace OnTopic.Reflection {
8+
namespace OnTopic.Lookup {
99

1010
/*============================================================================================================================
1111
| CLASS: DYNAMIC TOPIC VIEW MODEL LOOKUP SERVICE

OnTopic/Reflection/DynamicTypeLookupService.cs renamed to OnTopic/Lookup/DynamicTypeLookupService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System;
77
using System.Linq;
88

9-
namespace OnTopic.Reflection {
9+
namespace OnTopic.Lookup {
1010

1111
/*============================================================================================================================
1212
| CLASS: DYNAMIC TYPE LOOKUP SERVICE

OnTopic/ITypeLookupService.cs renamed to OnTopic/Lookup/ITypeLookupService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System;
77
using OnTopic.Mapping;
88

9-
namespace OnTopic {
9+
namespace OnTopic.Lookup {
1010

1111
/*============================================================================================================================
1212
| INTERFACE: TYPE LOOKUP SERVICE

OnTopic/StaticTypeLookupService.cs renamed to OnTopic/Lookup/StaticTypeLookupService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using OnTopic.Internal.Collections;
1010
using OnTopic.Internal.Diagnostics;
1111

12-
namespace OnTopic {
12+
namespace OnTopic.Lookup {
1313

1414
/*============================================================================================================================
1515
| CLASS: STATIC TYPE LOOKUP SERVICE

OnTopic/Mapping/TopicMappingService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
using OnTopic.Internal.Diagnostics;
1515
using OnTopic.Internal.Mapping;
1616
using OnTopic.Internal.Reflection;
17+
using OnTopic.Lookup;
1718
using OnTopic.Mapping.Annotations;
1819
using OnTopic.Models;
1920
using OnTopic.Repositories;

OnTopic/TopicFactory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System.Text.RegularExpressions;
88
using OnTopic.Attributes;
99
using OnTopic.Internal.Diagnostics;
10+
using OnTopic.Lookup;
1011

1112
namespace OnTopic {
1213

0 commit comments

Comments
 (0)