mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 13:33:34 +08:00
28 lines
828 B
C#
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);
|
|
}
|
|
}
|
|
}
|