mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045007
19 lines
517 B
C#
19 lines
517 B
C#
using Orchard.ContentManagement;
|
|
using Orchard.ContentManagement.Handlers;
|
|
using Orchard.Data;
|
|
|
|
namespace Orchard.Tests.ContentManagement.Models {
|
|
|
|
|
|
public class Epsilon : ContentPart<EpsilonRecord> {
|
|
}
|
|
|
|
public class EpsilonHandler : ContentHandler {
|
|
|
|
public EpsilonHandler(IRepository<EpsilonRecord> repository) {
|
|
Filters.Add(new ActivatingFilter<Epsilon>(x => x == "gamma"));
|
|
Filters.Add(StorageFilter.For(repository));
|
|
}
|
|
}
|
|
}
|