Пример #1
0
 // GET: /Admin/
 public AdminController(IContentTypePermissionSettingsService contentTypePermissionSettingsService,
                        IAuthenticationService authenticationService,
                        IMembershipService membershipService, IOrchardServices orcharcServices,
                        IContentDefinitionService contentDefinitionService,
                        IRoleService roleService
                        //       IPermissionProvider permissionProvider
                        )
 {
     _contentTypePermissionSettingsService = contentTypePermissionSettingsService;
     _authenticationService = authenticationService;
     _membershipService     = membershipService;
     _orchardServices       = orcharcServices;
     T = NullLocalizer.Instance;
     _contentDefinitionService = contentDefinitionService;
     _roleService = roleService;
     //      _permissionProvider = permissionProvider;
 }
Пример #2
0
 public ContentExtensionService(IContentManager contentManager,
                                ITaxonomyService taxonomyService,
                                IUtilsServices utilsServices,
                                IContentTypePermissionSettingsService contentTypePermissionSettingsService,
                                IOrchardServices orchardServices,
                                IRoleService roleService,
                                IEnumerable <IDumperHandler> dumperHandlers)
 {
     _contentManager  = contentManager;
     _taxonomyService = taxonomyService;
     Log            = NullLogger.Instance;
     _utilsServices = utilsServices;
     _contentTypePermissionSettingsService = contentTypePermissionSettingsService;
     _orchardServices = orchardServices;
     _roleService     = roleService;
     _dumperHandlers  = dumperHandlers;
 }