mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 13:33:34 +08:00
16 lines
720 B
C#
16 lines
720 B
C#
![]() |
using Orchard.ContentManagement;
|
|||
|
using Orchard.ContentManagement.Handlers;
|
|||
|
using Orchard.Core.PublishLater.Models;
|
|||
|
using Orchard.Core.PublishLater.Services;
|
|||
|
|
|||
|
namespace Orchard.Core.PublishLater.Handlers {
|
|||
|
public class PublishLaterPartHandler : ContentHandler {
|
|||
|
private readonly IPublishLaterService _publishLaterService;
|
|||
|
|
|||
|
public PublishLaterPartHandler(IPublishLaterService publishLaterService) {
|
|||
|
_publishLaterService = publishLaterService;
|
|||
|
|
|||
|
OnLoaded<PublishLaterPart>((context, publishLater) => publishLater.ScheduledPublishUtc.Loader(delegate { return _publishLaterService.GetScheduledPublishUtc(publishLater.As<PublishLaterPart>()); }));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|