本文整理汇总了C#中IOrchardServices类的典型用法代码示例。如果您正苦于以下问题:C# IOrchardServices类的具体用法?C# IOrchardServices怎么用?C# IOrchardServices使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IOrchardServices类属于命名空间,在下文中一共展示了IOrchardServices类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: FolderController
public FolderController(IOrchardServices services, IMediaLibraryService mediaManagerService) {
_mediaLibraryService = mediaManagerService;
Services = services;
Logger = NullLogger.Instance;
T = NullLocalizer.Instance;
}
开发者ID:bigfont,项目名称:CertifiedOverheadCrane,代码行数:7,代码来源:FolderController.cs
示例2: RateController
public RateController(IOrchardServices orchardServices, IContentManager contentManager, IVotingService votingService)
{
_orchardServices = orchardServices;
_contentManager = contentManager;
_votingService = votingService;
T = NullLocalizer.Instance;
}
开发者ID:Timbioz,项目名称:SciGitAzure,代码行数:7,代码来源:RateController.cs
示例3: PublicationService
public PublicationService(IOrchardServices orchardServices, IContentManager contentManager, IShapeFactory shapeFactory, ISiteService siteService)
{
_orchardServices = orchardServices;
_contentManager = contentManager;
_shapeFactory = shapeFactory;
_siteService = siteService;
}
开发者ID:rgardler,项目名称:dpp,代码行数:7,代码来源:PublicationService.cs
示例4: ClubAdminController
public ClubAdminController(IOrchardServices orchardServices, IMemberServices memberServices)
{
_orchardServices = orchardServices;
_memberServices = memberServices;
T = NullLocalizer.Instance;
Logger = NullLogger.Instance;
}
开发者ID:ivNetAdmin,项目名称:ivNet.Club.v.1.9.1,代码行数:7,代码来源:ClubAdminController.cs
示例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);
});
}
开发者ID:hxmtl,项目名称:Orchard-Harvest-Website,代码行数:32,代码来源:AutoroutePartHandler.cs
示例6: PublishLaterService
public PublishLaterService(
IOrchardServices services,
IPublishingTaskManager publishingTaskManager) {
Services = services;
_publishingTaskManager = publishingTaskManager;
T = NullLocalizer.Instance;
}
开发者ID:RasterImage,项目名称:Orchard,代码行数:7,代码来源:PublishLaterService.cs
示例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;
}
开发者ID:juaqaai,项目名称:CompanyGroup,代码行数:26,代码来源:AdminController.cs
示例8: ShoppingCartController
public ShoppingCartController(IOrchardServices orchardServices, ICatalogService catalogService, IShoppingCartService shoppingCartService)
: base(orchardServices)
{
_orchardServices = orchardServices;
_catalogService = catalogService;
_shoppingCartService = shoppingCartService;
}
开发者ID:priaonehaha,项目名称:vc-orchard-cms,代码行数:7,代码来源:ShoppingCartController.cs
示例9: TreeController
public TreeController(IEnumerable<ITreeNodeProvider> treeNodeProviders, IOrchardServices services)
{
_treeNodeProviders = treeNodeProviders;
Services = services;
T = NullLocalizer.Instance;
}
开发者ID:dminik,项目名称:voda,代码行数:7,代码来源:TreeController.cs
示例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;
}
开发者ID:rgardler,项目名称:dpp,代码行数:27,代码来源:BreadCrumbs.cs
示例11: AdminController
public AdminController(IOrchardServices services, IThemeService themeService, IPreviewTheme previewTheme, IAuthorizer authorizer, INotifier notifier)
{
Services = services;
_themeService = themeService;
_previewTheme = previewTheme;
T = NullLocalizer.Instance;
}
开发者ID:mofashi2011,项目名称:orchardcms,代码行数:7,代码来源:AdminController.cs
示例12: AdminController
public AdminController(
IOrchardServices services,
IReportsManager reportsManager) {
Services = services;
_reportsManager = reportsManager;
T = NullLocalizer.Instance;
}
开发者ID:SunRobin2015,项目名称:RobinWithOrchard,代码行数:7,代码来源:AdminController.cs
示例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;
}
开发者ID:NickAndersonX,项目名称:xodb,代码行数:27,代码来源:UsersService.cs
示例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;
}
开发者ID:kevinthant,项目名称:wiki,代码行数:25,代码来源:WikiPageController.cs
示例15: AdminController
public AdminController(IOrchardServices services, IImageGalleryService imageGalleryService)
{
Services = services;
_imageGalleryService = imageGalleryService;
T = NullLocalizer.Instance;
}
开发者ID:robertbird,项目名称:BoomJennies,代码行数:7,代码来源:AdminController.cs
示例16: ModuleService
public ModuleService(IOrchardServices orchardServices, IExtensionManager extensionManager,
IShellDescriptorManager shellDescriptorManager) {
Services = orchardServices;
_extensionManager = extensionManager;
_shellDescriptorManager = shellDescriptorManager;
T = NullLocalizer.Instance;
}
开发者ID:mofashi2011,项目名称:orchardcms,代码行数:7,代码来源:ModuleService.cs
示例17: UserManagerController
public UserManagerController(
IMyService myService,
ICustomUserEventHandler customUserEventHandler,
IOrchardServices orchardServices)
: base(myService, customUserEventHandler, orchardServices)
{
}
开发者ID:Xceno,项目名称:Xceno.CustomUsers,代码行数:7,代码来源:UserManagerController.cs
示例18: SurveyController
public SurveyController(IShapeFactory shapeFactory,
IOrchardServices orchardServices,
ILiveoSurveyService surveyService) {
Shape = shapeFactory;
_orchardServices = orchardServices;
_surveyService = surveyService;
}
开发者ID:CloudMetal,项目名称:Liveo.Deployment,代码行数:7,代码来源:SurveyController.cs
示例19: MovieLookupController
public MovieLookupController(
IOrchardServices orchardServices,
IMovieService movieService)
{
_orchardServices = orchardServices;
_movieService = movieService;
}
开发者ID:richinoz,项目名称:Orchard1.6,代码行数:7,代码来源:MovieLookupController.cs
示例20: AdminController
public AdminController(IContentManager contentManager,
IOrchardServices services,
IShapeFactory shapeFactory,
IContentDefinitionManager contentDefinitionManager,
IRemoteContentFetchService remoteContentFetchService,
ISynchronisationMapFactory synchronisationMapFactory,
IRepository<ContentSyncSettings> contentSyncSettingsRepository,
ISignals signals,
ILoggerFactory loggerFactory,
ICacheManager cacheManager,
IImportExportService importExportService,
IRecipeParser recipeParser,
IRemoteImportService remoteImportService,
IEnumerable<IHardComparer> hardComparers,
IEnumerable<ISoftComparer> softComparers) {
_contentManager = contentManager;
_services = services;
_shapeFactory = shapeFactory;
_contentDefinitionManager = contentDefinitionManager;
_remoteContentFetchService = remoteContentFetchService;
_synchronisationMapFactory = synchronisationMapFactory;
_contentSyncSettingsRepository = contentSyncSettingsRepository;
_signals = signals;
_loggerFactory = loggerFactory;
_cacheManager = cacheManager;
_importExportService = importExportService;
_recipeParser = recipeParser;
_remoteImportService = remoteImportService;
_hardComparers = hardComparers;
_softComparers = softComparers;
Logger = loggerFactory.CreateLogger(typeof (AdminController));
}
开发者ID:andrewmyhre,项目名称:Tad.ContentSync,代码行数:32,代码来源:AdminController.cs
注:本文中的IOrchardServices类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论