Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace consolidation #299

Open
ENikS opened this issue Dec 16, 2020 · 0 comments
Open

Namespace consolidation #299

ENikS opened this issue Dec 16, 2020 · 0 comments
Labels
Breaking change ❕ This change breaks public API Enhancement 🔨 Improvement of existing features
Milestone

Comments

@ENikS
Copy link
Contributor

ENikS commented Dec 16, 2020

Namespaces

Microsoft.Practices.Unity

Unity project started it's life at Microsoft.Practices.Unity namespace. In 2015, when the project was released into open source domain the namespace has been changed to be just Unity.

Unity

In later years, the project expanded to include several new namespaces. Reshrper played a big role while it was offered for free to the projects. A new namespaces were created to incapsulate Injection, Resolution, Builder, Extension, and etc.

using Unity.Builder;
using Unity.Extension;
using Unity.Strategies;

Consolidation

Although Visual Studio offers significant help in managing namespaces, reduction of implemented namespaces may benefit the project overall. The following namespaces are considered:

Unity.Extension

This namespace will encapsulate any and all types related to extending Unity Container. The following namespaces will be rolled into Unity.Extension:

// v4
using Microsoft.Practices.Unity.ObjectBuilder;
using Microsoft.Practices.ObjectBuilder2;

// v5
using Unity.Policy;
using Unity.Builder;
using Unity.Strategies;
@ENikS ENikS added Enhancement 🔨 Improvement of existing features Breaking change ❕ This change breaks public API labels Dec 16, 2020
@ENikS ENikS added this to the 6.0.0 milestone Dec 16, 2020
@ENikS ENikS changed the title Consolidate namespaces Namespace consolidation Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking change ❕ This change breaks public API Enhancement 🔨 Improvement of existing features
Projects
None yet
Development

No branches or pull requests

1 participant