C# Singleton Pattern and MEF
I have a question about the Singleton Pattern and MEF. I'm new in implementing MEF Plugins and I haven't found an answer. Is it possible to provide only one instance of a class through a MEF implemented Plugin? My old class is something like this: #region Singleton /// /// This class provide a generic and thread-safe interface for Singleton classes. /// /// The specialized singleton which is derived /// from SingletonBase<T> public abstract class Base where T : Base { /* the lock object */ private static object _lock = new object(); /* the static instance */ private static T _instance = null;