public TemplateModule(IDocumentTypeModule documentTypeModule, IFileService fileService, IContentTypeService contentTypeService) { _fileService = fileService; _contentTypeService = contentTypeService; _documentTypeModule = documentTypeModule; }
public DocumentModelModule(IDataTypeModule dataTypeModule, IDocumentTypeModule documentTypeModule) : base(dataTypeModule, documentTypeModule, x => x.ContentType.Alias, (x, type) => { if (type == SubscribeType.Subscribe) { ContentService.Trashing += x; } else { ContentService.Trashing -= x; } }, //trashing (x, type) => { }, //deleting (x, type) => { if (type == SubscribeType.Subscribe) { ContentService.Created += x; } else { ContentService.Created -= x; } }, //creating (x, type) => { if (type == SubscribeType.Subscribe) { ContentService.Saving += x; } else { ContentService.Saving -= x; } }, //saving (x, type) => { if (type == SubscribeType.Subscribe) { ContentService.Moving += x; } else { ContentService.Moving -= x; } }, //moving (x, type) => { if (type == SubscribeType.Subscribe) { ContentService.Copying += x; } else { ContentService.Copying -= x; } }, //copying (x, type) => { if (type == SubscribeType.Subscribe) { ContentService.Publishing += x; } else { ContentService.Publishing -= x; } }, //publishing (x, type) => { if (type == SubscribeType.Subscribe) { ContentService.UnPublishing += x; } else { ContentService.UnPublishing -= x; } }) //unpublishing { _dataTypeModule = dataTypeModule; _documentTypeModule = documentTypeModule; }