public Call() { PropertyChanged += Call_PropertyChanged; start_time = DateTime.Now; if (duration_timer == null) duration_timer = new System.Threading.Timer(DurationTimerFired, null, 1000, 1000); if (broker == null) broker = Broker.get_instance(); }
private Broker() { _instance = this; upgrade_settings(); Utils.PluginLog("", "");//clear file headset_plugin_manager = new HeadsetPluginManager(); NewEvent += Call.NewFSEvent; NewEvent += Account.NewEvent; Call.CallStateChanged += CallStateChangedHandler; Call.ActiveCallChanged += ActiveCallChanged; init_us(); DelayedFunction.DelayedCall("LoadContactManager", initContactManager, 1000); }
public static Broker get_instance() { return _instance ?? (_instance = new Broker()); }