The Shared helper is now obsolete (singletons are just too bad, not even suitable as workaround for static methods in interfaces for generic types; some cosmetic changes; made the ThreadRunner public

git-svn-id: file:///srv/devel/repo-conversion/nusu@333 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
Markus Ewald 2019-02-02 12:47:07 +00:00
parent 2f82a2fdf9
commit 97183d2335
7 changed files with 24 additions and 19 deletions

View file

@ -30,6 +30,7 @@ namespace Nuclex.Support {
public static class Shared<TShared> where TShared : new() {
/// <summary>Returns the global instance of the class</summary>
[Obsolete("Avoid singletons at all costs. Consider a dependency injector instead.")]
public static TShared Instance {
[DebuggerStepThrough]
get { return instance; }