• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# IRoleService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IRoleService的典型用法代码示例。如果您正苦于以下问题:C# IRoleService类的具体用法?C# IRoleService怎么用?C# IRoleService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IRoleService类属于命名空间,在下文中一共展示了IRoleService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: RolesBasedAuthorizationService

        public RolesBasedAuthorizationService(IRoleService roleService, IAuthorizationServiceEventHandler authorizationServiceEventHandler)
        {
            _roleService = roleService;
            _authorizationServiceEventHandler = authorizationServiceEventHandler;

            Logger = NullLogger.Instance;
        }
开发者ID:zirain,项目名称:MiniOrchard,代码行数:7,代码来源:RolesBasedAuthorizationService.cs


示例2: GuestRoleProvider

        public GuestRoleProvider(IRoleService roleService, IUnitOfWorkFactory unitOfWorkFactory)
        {
            using (var uow = unitOfWorkFactory.CreateSystem())
            {
                var role = roleService.GetAll(uow).FirstOrDefault(x => x.SystemRole == SystemRole.Base);

                if (role != null)
                {
                    List<Role> roles = role.Roles.SelectRecursive(x => x.Roles).Select(x => x.Item).Distinct().ToList();

                    roles.Add(role);

                    _roles = new List<Role>
                    {
                        new Role
                        {
                            ChildRoles = new List<ChildRole>(),
                            Name = "GustRole",
                            SystemRole = SystemRole.Base,
                            Permissions = roles
                                .SelectMany(m => m.Permissions)
                                .OrderBy(m => m.FullName)
                                .Select(x => new Permission(){
                                    FullName = x.FullName,
                                    AllowRead = x.AllowRead,
                                    AllowWrite = x.AllowWrite,
                                    AllowCreate = x.AllowCreate,
                                    AllowDelete = x.AllowDelete,
                                    AllowNavigate = x.AllowNavigate,
                                }).ToList()
                        }
                    };
                }
            }
        }
开发者ID:altaricka,项目名称:vDesign,代码行数:35,代码来源:GuestRoleProvider.cs


示例3: TagController

 public TagController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService, ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, ITopicTagService topicTagService, ICategoryService categoryService, ICacheService cacheService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
 {
     _topicTagService = topicTagService;
     _categoryService = categoryService;
     _cacheService = cacheService;
 }
开发者ID:huchao007,项目名称:mvcforum,代码行数:7,代码来源:TagController.cs


示例4: MemberController

        public MemberController(IMemberService memberService, IUserService userService, IRoleService roleService, ILevelService levelService)
		{
			_memberService = memberService;
            _userService = userService;
            _roleService = roleService;
            _levelService = levelService;
        }
开发者ID:glustful,项目名称:.NetProject,代码行数:7,代码来源:MemberController.cs


示例5: SnippetsController

 public SnippetsController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService, 
     ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService,
     IMembershipUserPointsService membershipUserPointsService, ICacheService cacheService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService, cacheService)
 {
     _membershipUserPointsService = membershipUserPointsService;
 }
开发者ID:lenwen,项目名称:mvcforum,代码行数:7,代码来源:SnippetsController.cs


示例6: WebCoreSecurityServiceBinder

 public WebCoreSecurityServiceBinder(IUserService userService, IRoleService roleService, IUserRolesService userRolesService, IRolePageRestrictionService rolePageRestrictionService)
 {
     this.userService = userService;
     this.roleService = roleService;
     this.userRolesService = userRolesService;
     this.rolePageRestrictionService = rolePageRestrictionService;
 }
开发者ID:rajbyexample,项目名称:Firebrick-CMS,代码行数:7,代码来源:WebCoreSecurityServiceBinder.cs


示例7: GroupController

 public GroupController(IRoleService _roleService
     , IGroupService _groupService
  )
 {
     roleService = _roleService;
     groupService = _groupService;
 }
开发者ID:navy235,项目名称:WebSite,代码行数:7,代码来源:GroupController.cs


示例8: ToolsController

 public ToolsController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IUserService userService,
     ISettingsService settingsService,
     ILocalizationService localizationService,
     IRoleService roleService)
     : base(loggingService, unitOfWorkManager, userService, settingsService, localizationService)
 {
 }
开发者ID:h2h,项目名称:CandyBBS,代码行数:7,代码来源:ToolsController.cs


示例9: FileController

 public FileController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService, 
     ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, IUploadedFileService uploadedFileService, ICategoryService categoryService, ICacheService cacheService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService, cacheService)
 {
     _uploadedFileService = uploadedFileService;
     _categoryService = categoryService;
 }
开发者ID:lenwen,项目名称:mvcforum,代码行数:7,代码来源:FileController.cs


示例10: AssociateController

 public AssociateController(
     IMembershipService membershipService,
     IMembershipService associateMembershipService,
     IAssociateService associateService,
     IDocumentService documentService,
     IReferenceService referenceService,
     IEmployeeService employeeService,
     IProspectService prospectService,
     IPrincipal user,
     IClientProjectSharedService clientProjectSharedService,
     IIndividualService individualService,
     IRoleService roleService,
     Admin.Services.IEmailService emailService)
     : base(membershipService, associateService, user)
 {
     this.associateService = associateService;
     this.documentService = documentService;
     this.referenceService = referenceService;
     this.employeeService = employeeService;
     this.prospectService = prospectService;
     this.associateMembershipService = associateMembershipService;
     this.clientProjectSharedService = clientProjectSharedService;
     this.individualService = individualService;
     this.roleService = roleService;
     this.emailService = emailService;
 }
开发者ID:itvijaykumar,项目名称:MRTest,代码行数:26,代码来源:Sample1_Controller.cs


示例11: UserController

            //public UserController(IUserService userService)
            //{
            //    _userService = userService;
            //}

            public UserController(IUserService userService, ApplicationSignInManager signInManager, IRoleService roleService, IAuthenticationManager authenticationManager)
            {
                _userService = userService;
                _signInManager = signInManager;
                _roleService = roleService;
                _authManager = authenticationManager;
            }
开发者ID:doubletong,项目名称:SIGLabWithEF,代码行数:12,代码来源:UserController.cs


示例12: BrokerInfoController

 /// <summary>
 /// 经纪人管理初始化
 /// </summary>
 /// <param name="clientInfoService">clientInfoService</param>
 /// <param name="workContext">workContext</param>
 /// <param name="brokerService">brokerService</param>
 /// <param name="partnerlistService">partnerlistService</param>
 /// <param name="recommendagentService">recommendagentService</param>
 /// <param name="roleService">roleService</param>
 /// <param name="MessageService">MessageService</param>
 /// <param name="userService">userService</param>
 public BrokerInfoController(IClientInfoService clientInfoService,
     IWorkContext workContext,
     IBrokerService brokerService,
     IPartnerListService partnerlistService,
     IRecommendAgentService recommendagentService,
     IRoleService roleService,
     IMessageDetailService MessageService,
     IUserService userService,
     IBrokeAccountService brokerAccountService,
     IEventOrderService eventOrderService,
     IInviteCodeService inviteCodeService,
     ILevelService levelService,
     IAgentBillService agentBillService,
     IEventService eventService
     )
 {
     _clientInfoService = clientInfoService;
     _workContext = workContext;
     _brokerService = brokerService;
     _partnerlistService = partnerlistService;
     _recommendagentService = recommendagentService;
     _roleService = roleService;
     _MessageService = MessageService;
     _userService = userService;
     _brokerAccountService = brokerAccountService;
     _eventOrderService = eventOrderService;
     _inviteCodeService = inviteCodeService;
     _levelService = levelService;
     _agentBillService = agentBillService;
     _eventService = eventService;
 }
开发者ID:glustful,项目名称:.NetProject,代码行数:42,代码来源:BrokerInfoController.cs


示例13: CategoryService

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context"></param>
 /// <param name="roleService"> </param>
 /// <param name="categoryNotificationService"> </param>
 /// <param name="categoryPermissionForRoleService"></param>
 public CategoryService(IMVCForumContext context, IRoleService roleService, ICategoryNotificationService categoryNotificationService, ICategoryPermissionForRoleService categoryPermissionForRoleService)
 {
     _roleService = roleService;
     _categoryNotificationService = categoryNotificationService;
     _categoryPermissionForRoleService = categoryPermissionForRoleService;
     _context = context as MVCForumContext;
 }
开发者ID:ivanchen52,项目名称:mvcforum,代码行数:14,代码来源:CategoryService.cs


示例14: SelectRolesForms

 public SelectRolesForms(
     IShapeFactory shapeFactory,
     IRoleService roleService) {
     _roleService = roleService;
     Shape = shapeFactory;
     T = NullLocalizer.Instance;
 }
开发者ID:SunRobin2015,项目名称:RobinWithOrchard,代码行数:7,代码来源:SelectRolesForms.cs


示例15: DefaultUsersApiOperations

 public DefaultUsersApiOperations(IUsersService users, IUserService user, IRolesService roles, IRoleService role)
 {
     Users = users;
     User = user;
     Roles = roles;
     Role = role;
 }
开发者ID:k4gdw,项目名称:BetterCMS,代码行数:7,代码来源:DefaultUsersApiOperations.cs


示例16: UserService

 public UserService(IUserRepository userRepository, ISessionManager sesstionService, IRoleService roleService, ISettingService settingService, ISessionManager sessionManager)
 {
     _userRepository = userRepository;
     _roleService = roleService;
     _sessionManager = sessionManager;
     _settingService = settingService;
 }
开发者ID:sleepandeat,项目名称:Program,代码行数:7,代码来源:UserService.cs


示例17: HomeController

 public HomeController(IArtistService artistService, ISongService songService, IUserService userService, IRoleService roleService)
 {
     this._userService = userService;
     this._artistService = artistService;
     this._songService = songService;
     this._roleService = roleService;
 }
开发者ID:babukh,项目名称:Card-index,代码行数:7,代码来源:HomeController.cs


示例18: LeadController

 public LeadController(
     ILeadService LeadService,
     IContactService contactService,
     IMembershipService membershipService,
     IRoleService roleService,
     INoteService noteService,
     IActivityService activityService,
     ISaleService saleService,
     ITaskService taskService,
     ViewDataHelper viewdataHelper,
     ICampaignService campaignService,
     ITagService tagService)
 {
     _leadService = LeadService;
     _contactService = contactService;
     _membershipService = membershipService;
     _roleService = roleService;
     _noteService = noteService;
     _activityService = activityService;
     _saleService = saleService;
     _taskService = taskService;
     _viewdataHelper = viewdataHelper;
     _campaignService = campaignService;
     _tagService = tagService;
 }
开发者ID:deboe2015,项目名称:crumb-crm,代码行数:25,代码来源:LeadController.cs


示例19: MembersController

 public MembersController(
     IMembershipService membershipService,
     IRoleService roleService)
 {
     _membershipService = membershipService;
     _roleService = roleService;
 }
开发者ID:deboe2015,项目名称:crumb-crm,代码行数:7,代码来源:MembersController.cs


示例20: RoleController

 public RoleController(IRoleService roleService,
     IEnumerable<IPermissionProvider> permissionProviders,
     IRepository<RolePermission> rpRepository) {
     _roleService = roleService;
     _permissionProviders = permissionProviders;
     _rpRepository = rpRepository;
 }
开发者ID:wolfweb,项目名称:Ww,代码行数:7,代码来源:RoleController.cs



注:本文中的IRoleService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IRoleType类代码示例发布时间:2022-05-24
下一篇:
C# IRoleRepository类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap