Skip to content

Commit 3c4dc3f

Browse files
committed
Moved OnTopic.Internal.Mapping to OnTopic.Mapping.Internal
As the `Mapping` namespace is fairly involved, and the `OnTopic.Internal.Mapping` services are exclusively used within the `Mapping` namespace, it makes sense to move them to `OnTopic.Mapping.Internal` so they're closer to the source. This will also be useful if we opt to migrate these to a separate project, or set of projects, at a future date, as we're evaluating. Technically, there's an argument for moving some of these out of `Internal`. For instance, both `PropertyConfiguration` and `MappedTopicCache` are utilized by `protected` methods on `TopicMappingService`. As such, it's available for use by derived instances of `TopicMappingService`. That's not a scenario we expect, however, and it remains true that most implementations will never need to be aware of or use these classes.
1 parent bde9887 commit 3c4dc3f

File tree

8 files changed

+8
-11
lines changed

8 files changed

+8
-11
lines changed

OnTopic.Tests/TopicMappingServiceTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
using Microsoft.VisualStudio.TestTools.UnitTesting;
1212
using OnTopic.Attributes;
1313
using OnTopic.Data.Caching;
14-
using OnTopic.Internal.Mapping;
1514
using OnTopic.Lookup;
1615
using OnTopic.Mapping;
16+
using OnTopic.Mapping.Internal;
1717
using OnTopic.Mapping.Annotations;
1818
using OnTopic.Metadata;
1919
using OnTopic.Metadata.AttributeTypes;

OnTopic/Internal/Mapping/MappedTopicCache.cs renamed to OnTopic/Mapping/Internal/MappedTopicCache.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
| Project Topics Library
55
\=============================================================================================================================*/
66
using System.Collections.Concurrent;
7-
using OnTopic.Mapping;
87

9-
namespace OnTopic.Internal.Mapping {
8+
namespace OnTopic.Mapping.Internal {
109

1110
/*============================================================================================================================
1211
| CLASS: MAPPED TOPIC CACHE

OnTopic/Internal/Mapping/MappedTopicCacheEntry.cs renamed to OnTopic/Mapping/Internal/MappedTopicCacheEntry.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
| Client Ignia, LLC
44
| Project Topics Library
55
\=============================================================================================================================*/
6-
using OnTopic.Mapping;
76
using OnTopic.Mapping.Annotations;
87

9-
namespace OnTopic.Internal.Mapping {
8+
namespace OnTopic.Mapping.Internal {
109

1110
/*============================================================================================================================
1211
| CLASS: MAPPED TOPIC CACHE ENTRY

OnTopic/Internal/Mapping/PropertyConfiguration.cs renamed to OnTopic/Mapping/Internal/PropertyConfiguration.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
using System.Reflection;
1313
using OnTopic.Attributes;
1414
using OnTopic.Internal.Diagnostics;
15-
using OnTopic.Mapping;
1615
using OnTopic.Mapping.Annotations;
1716

18-
namespace OnTopic.Internal.Mapping {
17+
namespace OnTopic.Mapping.Internal {
1918

2019
/*============================================================================================================================
2120
| CLASS: PROPERTY ATTRIBUTES

OnTopic/Internal/Mapping/RelationshipMap.cs renamed to OnTopic/Mapping/Internal/RelationshipMap.cs

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

9-
namespace OnTopic.Internal.Mapping {
9+
namespace OnTopic.Mapping.Internal {
1010

1111
/*============================================================================================================================
1212
| CLASS: RELATIONSHIP MAP

OnTopic/Mapping/Reverse/BindingModelValidator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
using System.Linq;
1212
using System.Reflection;
1313
using OnTopic.Internal.Diagnostics;
14-
using OnTopic.Internal.Mapping;
1514
using OnTopic.Internal.Reflection;
1615
using OnTopic.Mapping.Annotations;
16+
using OnTopic.Mapping.Internal;
1717
using OnTopic.Metadata;
1818
using OnTopic.Models;
1919
using OnTopic.Repositories;

OnTopic/Mapping/Reverse/ReverseTopicMappingService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
using OnTopic.Attributes;
1414
using OnTopic.Collections;
1515
using OnTopic.Internal.Diagnostics;
16-
using OnTopic.Internal.Mapping;
1716
using OnTopic.Internal.Reflection;
17+
using OnTopic.Mapping.Internal;
1818
using OnTopic.Metadata;
1919
using OnTopic.Models;
2020
using OnTopic.Repositories;

OnTopic/Mapping/TopicMappingService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
using System.Threading.Tasks;
1313
using OnTopic.Attributes;
1414
using OnTopic.Internal.Diagnostics;
15-
using OnTopic.Internal.Mapping;
1615
using OnTopic.Internal.Reflection;
1716
using OnTopic.Lookup;
1817
using OnTopic.Mapping.Annotations;
18+
using OnTopic.Mapping.Internal;
1919
using OnTopic.Models;
2020
using OnTopic.Repositories;
2121

0 commit comments

Comments
 (0)