本文整理汇总了C#中IRoleService类的典型用法代码示例。如果您正苦于以下问题:C# IRoleService类的具体用法?C# IRoleService怎么用?C# IRoleService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IRoleService类属于命名空间,在下文中一共展示了IRoleService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RolesBasedAuthorizationService
public RolesBasedAuthorizationService(IRoleService roleService, IAuthorizationServiceEventHandler authorizationServiceEventHandler)
{
_roleService = roleService;
_authorizationServiceEventHandler = authorizationServiceEventHandler;
Logger = NullLogger.Instance;
}
示例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()
}
};
}
}
}
示例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;
}
示例4: MemberController
public MemberController(IMemberService memberService, IUserService userService, IRoleService roleService, ILevelService levelService)
{
_memberService = memberService;
_userService = userService;
_roleService = roleService;
_levelService = levelService;
}
示例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;
}
示例6: WebCoreSecurityServiceBinder
public WebCoreSecurityServiceBinder(IUserService userService, IRoleService roleService, IUserRolesService userRolesService, IRolePageRestrictionService rolePageRestrictionService)
{
this.userService = userService;
this.roleService = roleService;
this.userRolesService = userRolesService;
this.rolePageRestrictionService = rolePageRestrictionService;
}
示例7: GroupController
public GroupController(IRoleService _roleService
, IGroupService _groupService
)
{
roleService = _roleService;
groupService = _groupService;
}
示例8: ToolsController
public ToolsController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IUserService userService,
ISettingsService settingsService,
ILocalizationService localizationService,
IRoleService roleService)
: base(loggingService, unitOfWorkManager, userService, settingsService, localizationService)
{
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例14: SelectRolesForms
public SelectRolesForms(
IShapeFactory shapeFactory,
IRoleService roleService) {
_roleService = roleService;
Shape = shapeFactory;
T = NullLocalizer.Instance;
}
示例15: DefaultUsersApiOperations
public DefaultUsersApiOperations(IUsersService users, IUserService user, IRolesService roles, IRoleService role)
{
Users = users;
User = user;
Roles = roles;
Role = role;
}