本文整理汇总了C#中IMemberService类的典型用法代码示例。如果您正苦于以下问题:C# IMemberService类的具体用法?C# IMemberService怎么用?C# IMemberService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IMemberService类属于命名空间,在下文中一共展示了IMemberService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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;
}
示例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;
}
示例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);
}
}
示例5: MemberController
public MemberController(
IMemberService MemberService
, IGroupService GroupService)
{
this.MemberService = MemberService;
this.GroupService = GroupService;
}
示例6: MemberAddressController
public MemberAddressController(IMemberAddressService memberAddressService,IWorkContext workContext,IMemberService memberService,IAreaService areaService)
{
_memberAddressService = memberAddressService;
_workContext = workContext;
_memberService = memberService;
_areaService = areaService;
}
示例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;
}
示例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);
}
}
}
示例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();
}
示例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;
}
示例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;
}
示例12: DataManagementController
public DataManagementController(ICategoryService categoryService, IDataItemService dataItemService, IMemberService memberService, IFileService fileService)
{
this.categoryService = categoryService;
this.dataItemService = dataItemService;
this.memberService = memberService;
this.fileService = fileService;
}
示例13: MemberController
public MemberController(IMemberService memberService, IUserService userService, IRoleService roleService, ILevelService levelService)
{
_memberService = memberService;
_userService = userService;
_roleService = roleService;
_levelService = levelService;
}
示例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;
}
示例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;
}