Split feature lifetime events to "xx'ing" and "xx'ed"

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-12-04 15:31:24 -08:00
parent b12a25e169
commit f794b3f955
6 changed files with 93 additions and 32 deletions

View File

@@ -1,4 +1,5 @@
using Orchard.Environment;
using System;
using Orchard.Environment;
using Orchard.Environment.Extensions;
using Orchard.Environment.Extensions.Models;
using Orchard.Localization;
@@ -15,17 +16,31 @@ namespace Orchard.Packaging {
public Localizer T { get; set; }
public void Install(Feature feature) {
_packagingSourceManager.AddSource( "Orchard Extensions Gallery", "http://feed.nuget.org/ctp2/odata/v1" );
public void Installing(Feature feature) {
}
public void Enable(Feature feature) {
public void Installed(Feature feature) {
if (feature.Descriptor.Id == "Gallery") {
_packagingSourceManager.AddSource("Orchard Extensions Gallery", "http://feed.nuget.org/ctp2/odata/v1");
}
}
public void Disable(Feature feature) {
public void Enabling(Feature feature) {
}
public void Uninstall(Feature feature) {
public void Enabled(Feature feature) {
}
public void Disabling(Feature feature) {
}
public void Disabled(Feature feature) {
}
public void Uninstalling(Feature feature) {
}
public void Uninstalled(Feature feature) {
}
}
}