示例#1
0
文件: Core.cs 项目: modernstar/core
        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...");
        }
示例#2
0
文件: Call.cs 项目: modernstar/core
 internal Call(CallManager callManager, int sessionId)
     : this(callManager, sessionId, null)
 {
 }
示例#3
0
 public CallWrapper(CallManager callManager, string number)
     : base(callManager, -1)
 {
     Number = number;
 }