示例#1
0
        public FolderInterruptionTrigger(string pluginFolderPath)
        {
            _pluginContainer = new FolderPluginComposition(this, pluginFolderPath);

            // Initialize loaded interruption handlers.
            foreach (var handler in _interruptionTriggers)
            {
                handler.InterruptionReceived += TriggerInterruption;
            }
        }
示例#2
0
 /// <summary>
 ///   Create a new persistence provider with application persistence plugins loaded from the specified path.
 /// </summary>
 /// <param name = "pluginFolderPath">The path where application persistence plugins are located.</param>
 public PluginPersistenceProvider(string pluginFolderPath)
 {
     try
     {
         _pluginContainer = new FolderPluginComposition(this, pluginFolderPath);
     }
     catch (CompositionException)
     {
         Dispose();
         throw;
     }
 }
        public PluginInterruptionTrigger( string pluginFolderPath )
        {
            _pluginContainer = new FolderPluginComposition( this, pluginFolderPath );

            HookInterruptionTriggers();
        }
示例#4
0
        public PluginInterruptionTrigger(string pluginFolderPath)
        {
            _pluginContainer = new FolderPluginComposition(this, pluginFolderPath);

            HookInterruptionTriggers();
        }
示例#5
0
 /// <summary>
 ///   Create a new persistence provider with application persistence plugins loaded from the specified path.
 /// </summary>
 /// <param name = "pluginFolderPath">The path where application persistence plugins are located.</param>
 public FolderPersistenceProvider(string pluginFolderPath)
 {
     _pluginContainer = new FolderPluginComposition(this, pluginFolderPath);
 }