public QdmsMessageBus() { //Singleton-ish guard if (_Instance != null) { LogWarning("Message bus already exists!"); _Instance = null; } Log("QDMS bus created!"); Receivers = new List <IQdmsMessageReceiver>(); _Instance = this; }
public static void ForcePurge() { _Instance = null; }
public override void Dispose() { Log("QDMS bus destroyed!"); _Instance = null; }