Ejemplo n.º 1
0
        public FolderInterruptionTrigger( string pluginFolderPath )
        {
            _pluginContainer = new FolderPluginComposition( this, pluginFolderPath );

            // Initialize loaded interruption handlers.
            foreach ( var handler in _interruptionTriggers )
            {
                handler.InterruptionReceived += TriggerInterruption;
            }
        }
Ejemplo n.º 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;
     }
 }
Ejemplo n.º 3
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 );
 }