mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Fixed braces
This commit is contained in:
parent
0da9370296
commit
cbcffb52d0
@ -8,14 +8,12 @@ namespace Orchard.MediaProcessing.Handlers {
|
||||
public class ImageProfilePartHandler : ContentHandler {
|
||||
private readonly ISignals _signals;
|
||||
|
||||
public ImageProfilePartHandler(IRepository<ImageProfilePartRecord> repository, ISignals signals)
|
||||
{
|
||||
public ImageProfilePartHandler(IRepository<ImageProfilePartRecord> repository, ISignals signals) {
|
||||
_signals = signals;
|
||||
Filters.Add(StorageFilter.For(repository));
|
||||
}
|
||||
|
||||
protected override void Published(PublishContentContext context)
|
||||
{
|
||||
protected override void Published(PublishContentContext context) {
|
||||
_signals.Trigger("MediaProcessing_Published_" + context.ContentItem.As<ImageProfilePart>().Name);
|
||||
base.Published(context);
|
||||
}
|
||||
|
@ -31,7 +31,6 @@ namespace Orchard.MediaProcessing.Services {
|
||||
}
|
||||
|
||||
public ImageProfilePart GetImageProfileByName(string name) {
|
||||
|
||||
var profileId = _cacheManager.Get("ProfileId_" + name, true, ctx => {
|
||||
ctx.Monitor(_signals.When("MediaProcessing_Published_" + name));
|
||||
var profile = _contentManager.Query<ImageProfilePart, ImageProfilePartRecord>()
|
||||
|
Loading…
Reference in New Issue
Block a user