public void Load(Application app) { app.ThrowIfNull("app"); this.Storage = new PartialStorage(this.GetType().FullName, app.Configuration); this.OnLoaded(new PluginEventArgs(app)); }
public void Unload(Application app) { if(!this.CanUnload(app)) { throw new NotImplementedException(); } app.ThrowIfNull("app"); this.OnUnloaded(new PluginEventArgs(app)); this.Storage.Dispose(); }
public PluginEventArgs(Application app) { app.ThrowIfNull("app"); this.Application = app; }
public virtual bool CanUnload(Application app) { return true; }