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

C# IMemberService类代码示例

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

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



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

示例1: AjaxServiceController

 public AjaxServiceController(
     IIndustryCateService IndustryCateService
     , ICityCateService CityCateService
     , ICustomerCompanyService CustomerCompanyService
     , IRelationCateService RelationCateService
     , ICustomerCateService CustomerCateService
     , IMemberService MemberService
     , IDepartmentService DepartmentService
     , IPermissionsService PermissionsService
     , IJobTitleCateService JobTitleCateService
     , IJobCateService JobCateService
     , IContractCateService ContractCateService
     )
 {
     this.IndustryCateService = IndustryCateService;
     this.CityCateService = CityCateService;
     this.CustomerCompanyService = CustomerCompanyService;
     this.RelationCateService = RelationCateService;
     this.CustomerCateService = CustomerCateService;
     this.MemberService = MemberService;
     this.DepartmentService = DepartmentService;
     this.PermissionsService = PermissionsService;
     this.JobTitleCateService = JobTitleCateService;
     this.JobCateService = JobCateService;
     this.ContractCateService = ContractCateService;
 }
开发者ID:navy235,项目名称:PadCrm,代码行数:26,代码来源:AjaxServiceController.cs


示例2: MediaVerifyController

 public MediaVerifyController(
       IMemberService MemberService
     , IEmailService EmailService
     , IMember_ActionService Member_ActionService
     , IOutDoorService OutDoorService
     , IIndustryCateService IndustryCateService,
     ICrowdCateService CrowdCateService,
     IOwnerCateService OwnerCateService,
     IAreaCateService AreaCateService,
     IPurposeCateService PurposeCateService,
     IFormatCateService FormatCateService,
     IPeriodCateService PeriodCateService,
     ICityCateService CityCateService,
     IMediaCateService MediaCateService,
     ICompanyService CompanyService)
 {
     this.MemberService = MemberService;
     this.EmailService = EmailService;
     this.Member_ActionService = Member_ActionService;
     this.OutDoorService = OutDoorService;
     this.IndustryCateService = IndustryCateService;
     this.CrowdCateService = CrowdCateService;
     this.OwnerCateService = OwnerCateService;
     this.AreaCateService = AreaCateService;
     this.PurposeCateService = PurposeCateService;
     this.FormatCateService = FormatCateService;
     this.PeriodCateService = PeriodCateService;
     this.CityCateService = CityCateService;
     this.MediaCateService = MediaCateService;
     this.CompanyService = CompanyService;
 }
开发者ID:navy235,项目名称:7980Site,代码行数:31,代码来源:MediaVerifyController.cs


示例3: AjaxContentController

 public AjaxContentController(
     IMemberService _memberService
     , IAreaAttService _areaAttService
     , IAreaService _areaService
     , IOutDoorMediaCateService _outDoorMediaCateService
     , IOutDoorService _outDoorService
     , IFormatCateService _formatCateService
     , ICompanyBussinessService _companyBussinessService
     , ICompanyFundService _companyFundService
     , ICompanyScaleService _companyScaleService
     , IPeriodCateService _periodCateService
     , IOwnerCateService _ownerCateService
     , IAuctionCalendarService _auctionCalendarService
     , ISliderImgService _sliderImgService
     , ISourceService _sourceService
     , ISearchService _searchService
     )
 {
     areaAttService = _areaAttService;
     areaService = _areaService;
     memberService = _memberService;
     outDoorMediaCateService = _outDoorMediaCateService;
     outDoorService = _outDoorService;
     formatCateService = _formatCateService;
     companyBussinessService = _companyBussinessService;
     companyFundService = _companyFundService;
     companyScaleService = _companyScaleService;
     periodCateService = _periodCateService;
     ownerCateService = _ownerCateService;
     auctionCalendarService = _auctionCalendarService;
     sliderImgService = _sliderImgService;
     sourceService = _sourceService;
     searchService = _searchService;
 }
开发者ID:navy235,项目名称:WebSite,代码行数:34,代码来源:AjaxContentController.cs


示例4: MemberServiceSaved

        /// <summary>
        /// Copies first name, last name and email address from saved member to Merchello customer.
        /// </summary>
        /// <param name="sender">
        /// The <see cref="IMemberService"/>.
        /// </param>
        /// <param name="e">
        /// The saved <see cref="IMember"/>s.
        /// </param>
        private static void MemberServiceSaved(IMemberService sender, Umbraco.Core.Events.SaveEventArgs<Umbraco.Core.Models.IMember> e)
        {
            var members = e.SavedEntities.ToArray();

            // Allowed member types for Merchello customers
            var customerMemberTypes = MerchelloConfiguration.Current.CustomerMemberTypes.ToArray();

            // Get a reference to Merchello's customer service
            var customerService = MerchelloContext.Current.Services.CustomerService;

            foreach (var member in members)
            {
                // verify the member is a customer type
                if (!customerMemberTypes.Contains(member.ContentTypeAlias)) continue;

                var customer = customerService.GetByLoginName(member.Username);
                if (customer == null) continue;

                customer.FirstName = member.GetValue<string>("firstName") ?? string.Empty;
                customer.LastName = member.GetValue<string>("lastName") ?? string.Empty;
                customer.Email = member.Username;

                customerService.Save(customer);
            }
        }
开发者ID:jlarc,项目名称:Merchello,代码行数:34,代码来源:UmbracoEventHandler.cs


示例5: MemberController

 public MemberController(
   IMemberService MemberService
     , IGroupService GroupService)
 {
     this.MemberService = MemberService;
     this.GroupService = GroupService;
 }
开发者ID:navy235,项目名称:7980Site,代码行数:7,代码来源:MemberController.cs


示例6: MemberAddressController

 public MemberAddressController(IMemberAddressService memberAddressService,IWorkContext workContext,IMemberService memberService,IAreaService areaService)
 {
     _memberAddressService = memberAddressService;
     _workContext = workContext;
     _memberService = memberService;
     _areaService = areaService;
 }
开发者ID:glustful,项目名称:.NetProject,代码行数:7,代码来源:MemberAddressController.cs


示例7: AgentController

        public AgentController(IMemberService memberService, IAgentService agentService, IContactService contactService, IMedallionService medallionService,
            IVehicleService vehicleService, IMeterManufacturerService meterManufacturerService, IStockholderService stockholderService, IAgentVehicleService agentVehicleService, IStandardDuesService standardDueService,
            IVehicleMakeService vehicleMakeService, IModelYearInsuranceService modelYearInsuranceService, IVehicleModelService vehicleModelService,
            IInsuranceDepositAgentService insuranceDepositService, IAutoLoanSetupAgentService autoLoanSetupService, IAccountReceivableAgentService accountReceivableService,
            ISavingDepositAgentService savingDepositService)
        {
            this.memberService = memberService;
            this.agentService = agentService;
            this.agentVehicleService = agentVehicleService;
            this.contactService = contactService;
            this.stockholderService = stockholderService;
            this.meterManufacturerService = meterManufacturerService;
            this.medallionService = medallionService;
            this.vehicleService = vehicleService;
            this.standardDueService = standardDueService;

            this._vehicleMakeService = vehicleMakeService;
            this._modelYearInsuranceService = modelYearInsuranceService;
            this._vehicleModelService = vehicleModelService;

            this.insuranceDepositService = insuranceDepositService;
            this.accountReceivableService = accountReceivableService;
            this.autoLoanSetupService = autoLoanSetupService;
            this.savingDepositService = savingDepositService;
        }
开发者ID:TDevs,项目名称:2014_TBS,代码行数:25,代码来源:AgentController.cs


示例8: SetIsApproved

        static void SetIsApproved(IMemberService sender, SaveEventArgs<IMember> e)
        {
            // Automatically approve all members, as we don't have an approval process now
            // This is needed as we added new membership after upgrading so IsApproved is
            // currently empty. First time a member gets saved now (login also saves the member)
            // IsApproved would turn false (default value of bool) so we want to prevent that

            // Note: Since July 23rd 2015 we need people to activate their accounts! Don't
            // approve automatically.
            var nonApprovedMembers = e.SavedEntities.Where(
                member => member.CreateDate < DateTime.Parse("2015-07-23")
                && member.Properties.Contains(Constants.Conventions.Member.IsApproved)
                && member.IsApproved == false);

            var memberService = ApplicationContext.Current.Services.MemberService;
            foreach (var member in nonApprovedMembers)
            {
                // Adds test for member having an Id, if they don't then it's a NEW member,
                // new members don't automatically get approved any more, only existing
                // member before July 23rd 2015
                if (member.HasIdentity)
                {
                    member.IsApproved = true;
                    memberService.Save(member, false);
                }
            }
        }
开发者ID:umbraco,项目名称:OurUmbraco,代码行数:27,代码来源:MemberApprovedEventhandler.cs


示例9: MemberService_Created

        /// <summary>
        /// Invoke dbo.[SendMemberWelcomePack]
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void MemberService_Created(IMemberService sender, NewEventArgs<IMember> e)
        {
            string Name = e.Entity.Name;
            string Email = e.Entity.Email;

            if (connection.State != System.Data.ConnectionState.Open)
            {
                connection.Open();
            }

            SqlTransaction tran = connection.BeginTransaction();
            var command = new SqlCommand("dbo.[SendMemberWelcomePack]", connection, tran);
            command.CommandType = CommandType.StoredProcedure;

            command.Parameters.Add("@name", SqlDbType.NVarChar, 256);
            command.Parameters["@name"].Value = Name;

            command.Parameters.Add("@email", SqlDbType.NVarChar, 256);
            command.Parameters["@email"].Value = Email;

            command.Parameters.Add("@ConversationHandle", SqlDbType.UniqueIdentifier);
            command.Parameters["@ConversationHandle"].Direction = ParameterDirection.Output;

            command.ExecuteNonQuery();
            tran.Commit();
        }
开发者ID:JamesGreenAU,项目名称:UmbracoServiceBroker,代码行数:31,代码来源:MemberQueue.cs


示例10: AjaxContentController

 public AjaxContentController(
      ICityCateService CityCateService,
      IArticleCateService ArticleCateService,
      IMemberService MemberService,
      IMediaCateService MediaCateService,
      IFormatCateService FormatCateService,
      IPeriodCateService PeriodCateService,
      IOwnerCateService OwnerCateService,
      IFavoriteService FavoriteService,
      ISchemeItemService SchemeItemService,
      ISchemeService SchemeService,
     IOutDoorService OutDoorService,
     IOutDoorLuceneService OutDoorLuceneService
   )
 {
     this.CityCateService = CityCateService;
     this.ArticleCateService = ArticleCateService;
     this.MemberService = MemberService;
     this.MediaCateService = MediaCateService;
     this.FormatCateService = FormatCateService;
     this.PeriodCateService = PeriodCateService;
     this.OwnerCateService = OwnerCateService;
     this.FavoriteService = FavoriteService;
     this.SchemeItemService = SchemeItemService;
     this.SchemeService = SchemeService;
     this.OutDoorService = OutDoorService;
     this.OutDoorLuceneService = OutDoorLuceneService;
 }
开发者ID:navy235,项目名称:7980Site,代码行数:28,代码来源:AjaxContentController.cs


示例11: GztvipController

 public GztvipController(
     IMemberService _memberService
     , IMember_ActionService _member_ActionService
     , IMember_MessageService _member_MessageService
     , ISys_MessageService _sys_MessageService
     , IMember_VIPService _member_VIPService
     , IMember_MoneyService _member_MoneyService
     , IPayListService _payListService
     , IServerItemService _serverItemService
     , ISliderImgService _sliderImgService
     , ITopMediaService _topMediaService
     , ITopCompanyService _topCompanyService
     , IOutDoorMediaCateService _outDoorMediaCateService
     , IOutDoorService _outDoorService
     , ICompanyService _companyService
     )
 {
     memberService = _memberService;
     member_ActionService = _member_ActionService;
     member_MessageService = _member_MessageService;
     sys_MessageService = _sys_MessageService;
     member_VIPService = _member_VIPService;
     member_MoneyService = _member_MoneyService;
     payListService = _payListService;
     serverItemService = _serverItemService;
     sliderImgService = _sliderImgService;
     topMediaService = _topMediaService;
     topCompanyService = _topCompanyService;
     outDoorMediaCateService = _outDoorMediaCateService;
     outDoorService = _outDoorService;
     companyService = _companyService;
 }
开发者ID:navy235,项目名称:WebSite,代码行数:32,代码来源:GztvipController.cs


示例12: DataManagementController

 public DataManagementController(ICategoryService categoryService, IDataItemService dataItemService, IMemberService memberService, IFileService fileService)
 {
     this.categoryService = categoryService;
     this.dataItemService = dataItemService;
     this.memberService = memberService;
     this.fileService = fileService;
 }
开发者ID:HiepTang,项目名称:AmiCaseBook,代码行数:7,代码来源:DataManagementController.cs


示例13: 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


示例14: ShopController

 public ShopController(
     IMemberService _memberService
     , ICompanyService _companyService
     , IAreaAttService _areaAttService
     , IAreaService _areaService
     , IOutDoorService _outDoorService
     , IOutDoorMediaCateService _outDoorMediaCateService
     , IFormatCateService _formatCateService
     , ICompanyBussinessService _companyBussinessService
     , ICompanyFundService _companyFundService
     , ICompanyScaleService _companyScaleService
     , IPeriodCateService _periodCateService
     , IOwnerCateService _ownerCateService
     , IAuctionCalendarService _auctionCalendarService
     )
 {
     areaAttService = _areaAttService;
     areaService = _areaService;
     memberService = _memberService;
     companyService = _companyService;
     outDoorService = _outDoorService;
     outDoorMediaCateService = _outDoorMediaCateService;
     formatCateService = _formatCateService;
     companyBussinessService = _companyBussinessService;
     companyFundService = _companyFundService;
     companyScaleService = _companyScaleService;
     periodCateService = _periodCateService;
     ownerCateService = _ownerCateService;
     auctionCalendarService = _auctionCalendarService;
 }
开发者ID:navy235,项目名称:WebSite,代码行数:30,代码来源:ShopController.cs


示例15: CustomerCompanyController

 public CustomerCompanyController(
     ICustomerCompanyService CustomerCompanyService
     , IRelationCateService RelationCateService
     , ICustomerCateService CustomerCateService
     , ICityCateService CityCateService
     , IIndustryCateService IndustryCateService
     , ICustomerService CustomerService
     , ITraceLogService TraceLogService
     , ICustomerShareService CustomerShareService
     , IMemberService MemberService
     , IPermissionsService PermissionsService
     , IContactRequireService ContactRequireService
     , IPlanLogService PlanLogService
     )
 {
     this.CustomerCompanyService = CustomerCompanyService;
     this.RelationCateService = RelationCateService;
     this.CustomerCateService = CustomerCateService;
     this.CityCateService = CityCateService;
     this.IndustryCateService = IndustryCateService;
     this.CustomerService = CustomerService;
     this.TraceLogService = TraceLogService;
     this.CustomerShareService = CustomerShareService;
     this.MemberService = MemberService;
     this.PermissionsService = PermissionsService;
     this.ContactRequireService = ContactRequireService;
     this.PlanLogService = PlanLogService;
 }
开发者ID:navy235,项目名称:PadCrm,代码行数:28,代码来源:CustomerCompanyController.cs


示例16: MemberController

 public MemberController(
   IMemberService _memberService
     , IGroupService _groupService)
 {
     memberService = _memberService;
     groupService = _groupService;
 }
开发者ID:navy235,项目名称:adzhi,代码行数:7,代码来源:MemberController.cs


示例17: AccountController

 /// <summary>
 /// Initializes a new instance of the <see cref="AccountController"/> class.
 /// </summary>
 /// <param name="userSession">The user session.</param>
 /// <param name="memberService">The user repository.</param>
 /// <param name="authenticator">The authenticator.</param>
 /// <param name="cryptographer">The cryptographer.</param>
 /// <param name="authenticationService"></param>
 public AccountController(IUserSession userSession, IMemberService memberService, IAuthenticator authenticator, ICryptographer cryptographer, IAuthenticationService authenticationService)
     : base(userSession)
 {
     this.memberService = memberService;
     this.authenticator = authenticator;
     this.cryptographer = cryptographer;
     this.authenticationService = authenticationService;
 }
开发者ID:TimBarcz,项目名称:groop,代码行数:16,代码来源:AccountController.cs


示例18: StorefrontSecurityController

 public StorefrontSecurityController(ISecurityService securityService, Func<ApplicationSignInManager> signInManagerFactory, INotificationManager notificationManager, IStoreService storeService, IMemberService memberService)
 {
     _securityService = securityService;
     _signInManagerFactory = signInManagerFactory;
     _notificationManager = notificationManager;
     _storeService = storeService;
     _memberService = memberService;
 }
开发者ID:sameerkattel,项目名称:vc-community,代码行数:8,代码来源:StoreFrontSecurityController.cs


示例19: CommunityOrderController

 public CommunityOrderController(IOrderService orderService, IProductService productService, IWorkContext workContext, IMemberAddressService memberAddressService, IMemberService memberService)
 {
     _orderService = orderService;
     _productService = productService;
     _workContext = workContext;
     _memberAddressService = memberAddressService;
     _memberService = memberService;
 }
开发者ID:glustful,项目名称:.NetProject,代码行数:8,代码来源:OrderController.cs


示例20: ServiceOrderController

 public ServiceOrderController(IServiceOrderService serviceOrderService, IProductService productService, IWorkContext workContext, IMemberAddressService memberAddressService, IMemberService memberService)
 {
     _serviceOrderService = serviceOrderService;
     _productService = productService;
     _workContext = workContext;
     _memberAddressService = memberAddressService;
     _memberService = memberService;
 }
开发者ID:glustful,项目名称:.NetProject,代码行数:8,代码来源:ServiceOrderController.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# IMembershipService类代码示例发布时间:2022-05-24
下一篇:
C# IMemberRef类代码示例发布时间: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