本文整理汇总了C#中IOrchardServices类的典型用法代码示例。如果您正苦于以下问题:C# IOrchardServices类的具体用法?C# IOrchardServices怎么用?C# IOrchardServices使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IOrchardServices类属于命名空间,在下文中一共展示了IOrchardServices类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FolderController
public FolderController(IOrchardServices services, IMediaLibraryService mediaManagerService) {
_mediaLibraryService = mediaManagerService;
Services = services;
Logger = NullLogger.Instance;
T = NullLocalizer.Instance;
}
示例2: RateController
public RateController(IOrchardServices orchardServices, IContentManager contentManager, IVotingService votingService)
{
_orchardServices = orchardServices;
_contentManager = contentManager;
_votingService = votingService;
T = NullLocalizer.Instance;
}
示例3: PublicationService
public PublicationService(IOrchardServices orchardServices, IContentManager contentManager, IShapeFactory shapeFactory, ISiteService siteService)
{
_orchardServices = orchardServices;
_contentManager = contentManager;
_shapeFactory = shapeFactory;
_siteService = siteService;
}
示例4: ClubAdminController
public ClubAdminController(IOrchardServices orchardServices, IMemberServices memberServices)
{
_orchardServices = orchardServices;
_memberServices = memberServices;
T = NullLocalizer.Instance;
Logger = NullLogger.Instance;
}
示例5: AutoroutePartHandler
public AutoroutePartHandler(
IRepository<AutoroutePartRecord> autoroutePartRepository,
Lazy<IAutorouteService> autorouteService,
IOrchardServices orchardServices) {
Filters.Add(StorageFilter.For(autoroutePartRepository));
_autorouteService = autorouteService;
_orchardServices = orchardServices;
OnUpdated<AutoroutePart>((ctx, part) => CreateAlias(part));
OnCreated<AutoroutePart>((ctx, part) => {
// non-draftable items
if (part.ContentItem.VersionRecord == null) {
PublishAlias(part);
}
});
// OnVersioned<AutoroutePart>((ctx, part1, part2) => CreateAlias(part1));
OnPublished<AutoroutePart>((ctx, part) => PublishAlias(part));
// Remove alias if removed or unpublished
OnRemoved<AutoroutePart>((ctx, part) => RemoveAlias(part));
OnUnpublished<AutoroutePart>((ctx, part) => RemoveAlias(part));
// Register alias as identity
OnGetContentItemMetadata<AutoroutePart>((ctx, part) => {
if (part.DisplayAlias != null)
ctx.Metadata.Identity.Add("alias", part.DisplayAlias);
});
}
示例6: PublishLaterService
public PublishLaterService(
IOrchardServices services,
IPublishingTaskManager publishingTaskManager) {
Services = services;
_publishingTaskManager = publishingTaskManager;
T = NullLocalizer.Instance;
}
示例7: AdminController
public AdminController(
IEnumerable<IExtensionDisplayEventHandler> extensionDisplayEventHandlers,
IOrchardServices services,
IDataMigrationManager dataMigraitonManager,
IFeatureManager featureManager,
ISiteThemeService siteThemeService,
IExtensionManager extensionManager,
ShellDescriptor shellDescriptor,
IPreviewTheme previewTheme,
IThemeService themeService,
IReportsCoordinator reportsCoordinator) {
Services = services;
_extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault();
_dataMigrationManager = dataMigraitonManager;
_siteThemeService = siteThemeService;
_extensionManager = extensionManager;
_shellDescriptor = shellDescriptor;
_featureManager = featureManager;
_previewTheme = previewTheme;
_themeService = themeService;
_reportsCoordinator = reportsCoordinator;
T = NullLocalizer.Instance;
Logger = NullLogger.Instance;
}
示例8: ShoppingCartController
public ShoppingCartController(IOrchardServices orchardServices, ICatalogService catalogService, IShoppingCartService shoppingCartService)
: base(orchardServices)
{
_orchardServices = orchardServices;
_catalogService = catalogService;
_shoppingCartService = shoppingCartService;
}
示例9: TreeController
public TreeController(IEnumerable<ITreeNodeProvider> treeNodeProviders, IOrchardServices services)
{
_treeNodeProviders = treeNodeProviders;
Services = services;
T = NullLocalizer.Instance;
}
示例10: GetNavigationName
private static string GetNavigationName(string partName, int id, IOrchardServices orchardServices)
{
string name = "";
switch (partName)
{
case ("Publications"):
var publicationPart = orchardServices.ContentManager.Get<PublicationPart>(id, VersionOptions.Latest);
name = publicationPart != null ? publicationPart.Title : partName;
break;
case ("Issues"):
var issuePart = orchardServices.ContentManager.Get<IssuePart>(id, VersionOptions.Latest);
name = issuePart != null ? issuePart.Title : partName;
break;
case ("Articles"):
var articlePart = orchardServices.ContentManager.Get<ArticlePart>(id, VersionOptions.Latest);
name = articlePart != null ? articlePart.Title : "Article";
break;
case ("Categories"):
name = "Category";
break;
default:
name = partName;
break;
}
return name;
}
示例11: AdminController
public AdminController(IOrchardServices services, IThemeService themeService, IPreviewTheme previewTheme, IAuthorizer authorizer, INotifier notifier)
{
Services = services;
_themeService = themeService;
_previewTheme = previewTheme;
T = NullLocalizer.Instance;
}
示例12: AdminController
public AdminController(
IOrchardServices services,
IReportsManager reportsManager) {
Services = services;
_reportsManager = reportsManager;
T = NullLocalizer.Instance;
}
示例13: UsersService
public UsersService(
IContentManager contentManager,
IOrchardServices orchardServices,
IRoleService roleService,
IMessageManager messageManager,
IScheduledTaskManager taskManager,
IRepository<EmailPartRecord> emailRepository,
ShellSettings shellSettings,
IRepository<UserRolesPartRecord> userRolesRepository,
ICacheManager cache,
IClock clock,
ISignals signals)
{
_signals = signals;
_clock = clock;
_cache = cache;
_emailRepository = emailRepository;
_orchardServices = orchardServices;
_contentManager = contentManager;
_roleService = roleService;
_messageManager = messageManager;
_taskManager = taskManager;
_shellSettings = shellSettings;
_userRolesRepository = userRolesRepository;
T = NullLocalizer.Instance;
Logger = NullLogger.Instance;
}
示例14: WikiPageController
public WikiPageController(IOrchardServices orchardServices,
IRepository<WikiPageAttachmentRecord> repoWikiAttachment,
ITagService tagService,
IAuthorizationService authorizationService,
INotifier notifier,
ISiteService siteService,
ISearchService searchService,
IShapeFactory shapeFactory,
IWikiPageService wikiPageService,
IMediaService mediaService
){
_orchardServices = orchardServices;
_repoWikiAttachment = repoWikiAttachment;
_tagService = tagService;
_authorizationService = authorizationService;
_notifier = notifier;
_searchService = searchService;
_siteService = siteService;
_wikiPageService = wikiPageService;
_mediaService = mediaService;
Logger = NullLogger.Instance;
Shape = shapeFactory;
}
示例15: AdminController
public AdminController(IOrchardServices services, IImageGalleryService imageGalleryService)
{
Services = services;
_imageGalleryService = imageGalleryService;
T = NullLocalizer.Instance;
}