internal Core(ISynchronizeInvoke syncInvoke) { var pluginLoadingHandler = new Action <string>(x => { RaisePartLoadingEvent($"Loading plugin {x}..."); }); RaisePartLoadingEvent("Loading Settings..."); _settingsManager = new Settings.SettingsManager(this); SettingsManager = _settingsManager.GetSection("Core"); RaisePartLoadingEvent("Loading SIP..."); _sip = new SIP.SIP(this, syncInvoke); RaisePartLoadingEvent("Loading Audio..."); _audio = new Audio.Audio(this); RaisePartLoadingEvent("Initializing Audio..."); _sip.InitializeAudio(); // Load core classes RaisePartLoadingEvent("Loading Calls core..."); CallManager = new CallManager.CallManager(this); RaisePartLoadingEvent("Loading Plugins..."); _pluginManager = new PluginManager.PluginManager(this); RaisePartLoadingEvent("Loading Contacts..."); _contactsManager = new ContactsManager(this, syncInvoke); _pluginManager.PluginLoading += pluginLoadingHandler; _pluginManager.LoadPluginsFromDirectory(System.IO.Path.GetFullPath("plugins")); _pluginManager.PluginLoading -= pluginLoadingHandler; _pluginManager.Start(); RaisePartLoadingEvent("Core loaded successfully. Starting..."); }
public SipMessenger(SIP sip) { sip.SipekResources.Messenger.MessageReceived += MessengerOnMessageReceived; }
public SipCodec(SIP sip, string name) { this._sip = sip; this._name = name; }