Files
Orchard/src/Orchard.Web/Modules/Orchard.MultiTenancy/Services/ShellSettingsEventHandler.cs
Sebastien Ros f6c170679e IShellSettingsEventHandler to modify tenants in the running application
Added new methods for altering the tenants: Remove and Update

--HG--
branch : dev
2010-05-12 15:26:52 -07:00

28 lines
828 B
C#

using System;
using Orchard.Events;
using Orchard.Environment.Configuration;
using Orchard.Environment;
namespace Orchard.MultiTenancy.Services {
public class ShellSettingsEventHandler : IShellSettingsEventHandler, IDependency {
private readonly IRunningShellTable _runningShellTable;
public ShellSettingsEventHandler(IRunningShellTable runningShellTable) {
_runningShellTable = runningShellTable;
}
public void Created(ShellSettings settings) {
_runningShellTable.Add(settings);
}
public void Deleted(ShellSettings settings) {
_runningShellTable.Remove(settings);
}
public void Updated(ShellSettings settings) {
_runningShellTable.Update(settings);
}
}
}